|
|
Re: PHPUnit tests in Eclipse generates a java.util.ConcurrentModificationException [message #1831351 is a reply to message #1809266] |
Mon, 17 August 2020 21:13 |
Marcel Bezerra da Silva Messages: 1 Registered: August 2020 |
Junior Member |
|
|
Hi, I have a new issue when to run the PHPUnit with Xdebug.
I use
PHPUnit version: 9.3.7
XDebug: 2.9.6
PHP version: 7.4.9
PHPUnit installation Method: Composer
Eclipse IDE for PHP Developers (includes Incubating components)
Version: 2020-06 (4.16.0)
Build id: 20200615-1200
The error returned is:
........................................EPHP Notice: Undefined index: file in D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php on line 1090
PHP Stack trace:
PHP 1. {main}() D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\phpunit:0
PHP 2. PHPUnit\TextUI\Command::main($exit = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\phpunit:61
PHP 3. PHPUnit\TextUI\Command->run($argv = *uninitialized*, $exit = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\Command.php:100
PHP 4. PHPUnit\TextUI\TestRunner->run($suite = *uninitialized*, $arguments = *uninitialized*, $warnings = *uninitialized*, $exit = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\Command.php:147
PHP 5. PHPUnit\Framework\TestSuite->run($result = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\TestRunner.php:671
PHP 6. PHPUnit\Framework\TestSuite->run($result = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestSuite.php:665
PHP 7. WorkerTest->run($result = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestSuite.php:665
PHP 8. PHPUnit\Framework\TestResult->run($test = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestCase.php:880
PHP 9. PHPUnit\Framework\TestResult->endTest($test = *uninitialized*, $time = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestResult.php:977
PHP 10. PHPUnitLogger->endTest($test = *uninitialized*, $time = *uninitialized*) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestResult.php:449
PHP 11. PHPUnitEclipseLogger->endTest($test = *uninitialized*, $time = *uninitialized*) D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php(578) : eval()'d code:148
PHP 12. PHPUnitEclipseLogger->writeTest($test = *uninitialized*, $event = *uninitialized*, $isTestCase = *uninitialized*) D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php:652
PHP 13. filterTrace($trace = *uninitialized*) D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php:824
Notice: Undefined index: file in D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php on line 1090
Call Stack:
0.0123 405936 1. {main}() D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\phpunit:0
0.0427 4239608 2. PHPUnit\TextUI\Command::main(???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\phpunit:61
0.0427 4239736 3. PHPUnit\TextUI\Command->run(???, ???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\Command.php:100
0.2005 7784208 4. PHPUnit\TextUI\TestRunner->run(???, ???, ???, ???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\Command.php:147
4.0015 8529200 5. PHPUnit\Framework\TestSuite->run(???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\TestRunner.php:671
13.1680 24990912 6. PHPUnit\Framework\TestSuite->run(???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestSuite.php:665
13.1705 24996200 7. WorkerTest->run(???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestSuite.php:665
13.1706 24996200 8. PHPUnit\Framework\TestResult->run(???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestCase.php:880
13.1927 25835096 9. PHPUnit\Framework\TestResult->endTest(???, ???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestResult.php:977
13.1927 25835096 10. PHPUnitLogger->endTest(???, ???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestResult.php:449
13.1927 25835096 11. PHPUnitEclipseLogger->endTest(???, ???) D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php(578) : eval()'d code:148
13.1927 25834688 12. PHPUnitEclipseLogger->writeTest(???, ???, ???) D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php:652
13.1928 25836512 13. filterTrace(???) D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php:824
PHP Fatal error: Uncaught TypeError: Argument 1 passed to PHPUnit\Util\Blacklist::isBlacklisted() must be of the type string, null given, called in D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php on line 1090 and defined in D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Util\Blacklist.php:35
Stack trace:
#0 D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php(1090): PHPUnit\Util\Blacklist->isBlacklisted(NULL)
#1 D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php(824): filterTrace(Array)
#2 D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php(652): PHPUnitEclipseLogger->writeTest(Object(WorkerTest), 'error')
#3 D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php(578) : eval()'d code(148): PHPUnitEclipseLogger->endTest(Object(WorkerTest), 0.0044947)
#4 D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\Framework\TestResult.php(449): PHPUnitLogger->endTest(Object(WorkerTest), 0.0044947)
#5 D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\php in D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\Command.php on line 102
Fatal error: Uncaught TypeError: Argument 1 passed to PHPUnit\Util\Blacklist::isBlacklisted() must be of the type string, null given, called in D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php on line 1090 and defined in D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\Command.php on line 102
PHPUnit\TextUI\Exception: Argument 1 passed to PHPUnit\Util\Blacklist::isBlacklisted() must be of the type string, null given, called in D:\marce\AppData\Local\Temp\phpunit_printer\PHPUnitLogger.php on line 1090 in D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\src\TextUI\Command.php on line 102
Call Stack:
0.0123 405936 1. {main}() D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\phpunit:0
0.0427 4239608 2. PHPUnit\TextUI\Command::main(???) D:\Desenvolvimento\ads-manager-worker\vendor\phpunit\phpunit\phpunit:61
I think that it is because the PHP7.4 doesn't accept a NULL value when a string is expected.
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds