R
R
Ruslan Absalyamov2018-10-06 10:28:30
PHPUnit
Ruslan Absalyamov, 2018-10-06 10:28:30

How to remove Class 'PHPUnit_TextUI_ResultPrinter' not found error?

I am using laravel 5.5. Tried to run tests but I got this kind of error

XDebug could not open the remote debug file '/tmp/xdebug_remote.log'.
PHP Fatal error:  Class 'PHPUnit_TextUI_ResultPrinter' not found in /usr/share/php/PHPUnit/Util/Log/TeamCity.php on line 19
PHP Stack trace:
PHP   1. {main}() /home/ruslan/Разработка/latina/admin/vendor/phpunit/phpunit/phpunit:0
PHP   2. PHPUnit\TextUI\Command::main() /home/ruslan/Разработка/latina/admin/vendor/phpunit/phpunit/phpunit:53
PHP   3. PHPUnit\TextUI\Command->run() /home/ruslan/Разработка/latina/admin/vendor/phpunit/phpunit/src/TextUI/Command.php:148
PHP   4. PHPUnit\TextUI\Command->handleArguments() /home/ruslan/Разработка/latina/admin/vendor/phpunit/phpunit/src/TextUI/Command.php:159
PHP   5. PHPUnit\TextUI\Command->handlePrinter() /home/ruslan/Разработка/latina/admin/vendor/phpunit/phpunit/src/TextUI/Command.php:849
PHP   6. require() /home/ruslan/Разработка/latina/admin/vendor/phpunit/phpunit/src/TextUI/Command.php:930

Process finished with exit code 255

But I don’t understand how to understand what needs to be done with such a PHPUnit_TextUI_ResultPrinter class in general, there is no such class in the project and where to get it from.
tried to apply
composer update

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-10-06
@rusline18

Add to composer.json if not present:

"require-dev": {
    "phpunit/phpunit": "^7.2"
}

And then composer update.
If it's in composer, then try this:
sudo apt-get remove phpunit
sudo apt-get install --autoremove

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question