mikeerickson / phpunit-pretty-result-printer

PHPUnit Pretty Result Printer -- make your PHPUnit tests look pretty!
MIT License
1.2k stars 71 forks source link

Fatal Error #4

Closed VinceG closed 6 years ago

VinceG commented 6 years ago
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.

PHPUnit 6.2.2 PHP 7.1.6

VinceG commented 6 years ago

Never mind i had two version of php unit installed.