Fatal error in ObjectManagerTest
|Priority:||Should have||Due date:|
|Assignee:||Bastian Waidelich||% Done:||
|Category:||- Testing -|
|Target version:||TYPO3 Flow Base Distribution - 1.0 alpha 14|
|Has patch:||FLOW3 version affected:|
When running the FLOW3 testrunner, in about 20% of the cases I'm getting a fatal error "Cannot redeclare class [XYZ]" where [XYZ] is a mock class name like "BarClass4d107922cd5f8".
The reason is probably, that we're using
uniqid() to create the class names, which seems - at least on windows - not to be as unique as it should be..
[+BUGFIX] FLOW3 (Testing): Use better uniqid() in ObjectManagerTest
On Windows successive calls of the PHP function uniqid() seem to create the
same string in certain circumstances.
In the ObjectManagerTest we use uniqid() to create mock class names.
This leads to a fatal error in about every fifth execution of the testrunner on
This is fixed by specifying the "more_entropy" parameter and prefixing the
id with a random number.
Updated by Karsten Dambekalns over 2 years ago
- Status changed from New to Under Review
- Assignee set to Bastian Waidelich
- Target version set to 1.0 alpha 14