Closed crouti closed 5 years ago
You appear to have a project-local version of PHPUnit installed using Composer but instead of invoking that (using ./vendor/bin/phpunit
) you invoke another version of PHPUnit (using phpunit
, for instance).
Thanks a lot, but if i use this version
../../../vendor/bin/phpunit -c multisite.xml
I still get a fatal error
Fatal error: Class PHPUnit_Util_Test may not inherit from final class (PHPUnit\Util\Test) in /private/var/folders/j3/t3yfbrhd6q3f__6dhfcmxnjc0000gn/T/wordpress-tests-lib/includes/phpunit6-compat.php on line 18
What should i do, remove the phpunit installed via composer and use the one delivered with MAMP ?
In the MAMP php log file
[08-Nov-2018 09:14:00 UTC] PHP Fatal error: Declaration of SebastianBergmann\Comparator\DOMNodeComparator::assertEquals($expected, $actual, $delta = 0, $canonicalize = false, $ignoreCase = false) must be compatible with SebastianBergmann\Comparator\ObjectComparator::assertEquals($expected, $actual, $delta = 0, $canonicalize = false, $ignoreCase = false, array &$processed = Array) in phar:///Applications/MAMP/Library/bin/phpunit-5.1.3.phar/sebastian-comparator/DOMNodeComparator.php on line 110
composer info | sort
gives
Any idea how i could make phpunit start correctly ? Thanks