When I ran
phpunit for my WordPress plugin, I got an error like following.
$ phpunit Installing... Running as single site... To run multisite, use -c tests/phpunit/multisite.xml PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /private/tmp/wordpress-tests-lib/includes/testcase.php on line 15
Apparently PHPUnit 6 no longer seems to support
So I had to update my plugin like following.
$ composer require phpunit/phpunit:5.6 $ composer install
phpunit, it works fine.
Finally, I updated
.travis.yml like following.
before_script: - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION - composer install script: - vendor/bin/phpunit
Ah, I have to update other plugins too.