Community
Participate
Working Groups
In my unit test I got this error using PHPUnit 8.0: Failed asserting that exception of type "Error" matches expected exception "Generics\Socket\SocketException". Message was: "Class 'PHP_Timer' not found" at C:\Users\Maik\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php:780 D:\web\phpGenerics\src\Generics\Socket\ClientSocket.php:54 D:\web\phpGenerics\tests\socket-tests\ClientSocketTest.php:26
New Gerrit change created: https://git.eclipse.org/r/136205
In fact, PHPUnit 7.x introduced the dependency phpunit/php-timer:^2.0 https://packagist.org/packages/phpunit/phpunit#7.0.0 vs https://packagist.org/packages/phpunit/phpunit#6.5.x-dev
Thank You!
Gerrit change https://git.eclipse.org/r/136205 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=4941dd8d83ef94439f92d5cdbf0dab69cba5cd90
Thank you very much for your patch Maik, help is always welcome! ;) But just one (big) comment: was it really necessary to completely destroy the code formatting of the PHPUnitLogger.php file? :/ I'll do some cleanup/revert on top of your patch when I have again a bit of time... Thierry.
New Gerrit change created: https://git.eclipse.org/r/136863
Gerrit change https://git.eclipse.org/r/136863 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=60c4dff8790a78f1f540141e220d12e2ce9e1ead
Is this really fixed in 6.3.0.201909061650? Because I'm getting the following warning, and the test execution fails: ``` Warning: Class 'SebastianBergmann\Timer\Timer' not found in C:\Users\FOO\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php on line 52 Call Stack: 0.0240 917992 1. {main}() C:\Users\FOO\git\dotenv\phpunit-8.4.phar:0 0.1570 10267120 2. PHPUnit\TextUI\Command::main(???) C:\Users\FOO\git\dotenv\phpunit-8.4.phar:647 0.1570 10267232 3. PHPUnit\TextUI\Command->run(???, ???) phar://C:/Users/FOO/git/dotenv/phpunit-8.4.phar/phpunit/TextUI/Command.php:66 0.1570 10267232 4. PHPUnit\TextUI\Command->handleArguments(???) phar://C:/Users/FOO/git/dotenv/phpunit-8.4.phar/phpunit/TextUI/Command.php:73 0.1580 10270200 5. PHPUnit\TextUI\Command->handlePrinter(???, ???) phar://C:/Users/FOO/git/dotenv/phpunit-8.4.phar/phpunit/TextUI/Command.php:561 0.1600 10367776 6. require('C:\Users\FOO\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php') phar://C:/Users/FOO/git/dotenv/phpunit-8.4.phar/phpunit/TextUI/Command.php:613 0.1600 10367968 7. class_alias(???, ???) C:\Users\FOO\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php:52 ```
I prepared bug #553526