[BUGFIX] Fix failing PHPUnit-Tests on Windows due to uniqid()-calls 29/35529/2
authorStephan Großberndt <stephan@grossberndt.de>
Tue, 16 Dec 2014 22:42:07 +0000 (23:42 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 16 Dec 2014 23:13:55 +0000 (00:13 +0100)
commitb7a9714ed4821fcdfd2673a24946cfb787aa9362
tree18bab1b78b0985a02df8884e4be98c40494df63e
parent091f6599929b67a96faf71b16b7de9ef1a9c83c2
[BUGFIX] Fix failing PHPUnit-Tests on Windows due to uniqid()-calls

If in one test multiple objects are created and their names are created
with uniqid()-calls without params, they fail because they return the
same value.

Using md5(uniqid(microtime(), true)) instead makes object names unique.

Resolves: #63943
Releases: master, 6.2
Change-Id: Ib223d45f04946223c4a8ae9ce68a5c5b24459355
Reviewed-on: http://review.typo3.org/35529
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extbase/Tests/Unit/DomainObject/AbstractEntityTest.php
typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php