I'm trying to set up drush + phpunit, following these two guides:
- the official Drush/tests/README.md
- Getting Started Testing Drush Commands which is the most recent guide I could find
Here's what I have so far:
- macOS Sierra 10.12.2
- PHPUnit 5.7.5 at
/users/wim.mostrey/.composer/vendor/bin/phpunit
- Drush 8.1.9 at
/users/wim.mostrey/.composer/vendor/bin/drush
- Drush tests at
/users/wim.mostrey/.composer/vendor/drush/drush/tests
- a simple test
migrateManifestTest
at/users/wim.mostrey/.composer/vendor/drush/drush/tests/migrateManifestTest.php
I try to run the test using the following command:
UNISH_NO_TIMEOUTS=1 UNISH_DRUPAL_MAJOR_VERSION=8 ./unish.sh --filter=migrateManifestTest
However I get the following error:
PHP Fatal error: Class 'Unish\UnitUnishTestCase' not found in /Users/wim.mostrey/.composer/vendor/drush/drush/tests/bootstrap.inc on line 51
I tried searching online for this error but got no results at all. I tried running both unish.sh
and phpunit
from different locations and using different configuration options, to no avail.
Any help would be highly appreciated.