PHP Fatal error: Cannot declare class Codedungeon\PHPUnitPrettyResultPrinter\_ResultPrinter, because the name is already in use in /Users/vincentgabriel/Sites/xxx/vendor/codedungeon/phpunit-result-printer/src/Printer.php on line 21
Fatal error: Cannot declare class Codedungeon\PHPUnitPrettyResultPrinter\_ResultPrinter, because the name is already in use in /Users/vincentgabriel/Sites/xxx/vendor/codedungeon/phpunit-result-printer/src/Printer.php on line 21
Seems like codedungeon/phpunit-result-printer/src/Printer.php checks which php unit version is installed
if i run
var_dump(class_exists('\PHPUnit_TextUI_ResultPrinter'), class_exists('\PHPUnit\TextUI\ResultPrinter'));
both return true, therefore the error above shown.
Seems like
codedungeon/phpunit-result-printer/src/Printer.php
checks which php unit version is installedif i run
var_dump(class_exists('\PHPUnit_TextUI_ResultPrinter'), class_exists('\PHPUnit\TextUI\ResultPrinter'));
both return true, therefore the error above shown.
PHPUnit 6.2.2 PHP 7.1.6