Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHPUnit tests in Eclipse generates a java.util.ConcurrentModificationException(PHPUnit tests in Eclipse generates a java.util.ConcurrentModificationException)
PHPUnit tests in Eclipse generates a java.util.ConcurrentModificationException [message #1809167] Wed, 10 July 2019 12:58 Go to next message
Fred DIRSON is currently offline Fred DIRSONFriend
Messages: 1
Registered: July 2019
Junior Member
Hi there,

I use
PHPUnit version: 7.5.13
PHP version: 7.3.1
PHPUnit installation Method: Composer
Eclipse version: Photon & 06-2019

PHPUnit don't run in Eclipse with JAVA 11.
If i launch eclipse with JAVA 8, it's OK because automatically this environnement var is add:
PHPUNIT_PORT 7478
With JAVA 11 (oracle or adoptOpenJdk binaries) this env var is not set and following error is thrown:
java.util.ConcurrentModificationException
If manually i add this var, runs are OK...

In Eclipse, i have two ways for launch phpunit tests (with Same error and same solve):

Right click on phpunit.xml and "run as phpunit test"
Right click on each TestClass and "run as phpunit test"

Best regards,

F.DIRSON
Re: PHPUnit tests in Eclipse generates a java.util.ConcurrentModificationException [message #1809266 is a reply to message #1809167] Fri, 12 July 2019 15:22 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
Bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=549133

Will be fixed in next version.


Re: PHPUnit tests in Eclipse generates a java.util.ConcurrentModificationException [message #1831351 is a reply to message #1809266] Mon, 17 August 2020 21:13 Go to previous message
Marcel Bezerra da Silva is currently offline Marcel Bezerra da SilvaFriend
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.
Previous Topic:css content assist behavior
Next Topic:xdebug for Eclipse IDE PHP ver R 2020-06
Goto Forum:
  


Current Time: Tue Apr 16 10:55:33 GMT 2024

Powered by FUDForum. Page generated in 0.47971 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top