[TASK] Make array utility test do not depend on undefined behaviour 55/36055/4
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Fri, 16 Jan 2015 21:44:27 +0000 (22:44 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 17 Jan 2015 12:30:49 +0000 (13:30 +0100)
commit4ee7cdf9cfb22d3ecae8cafd80d9559d7138e79b
treea61708e737d0f2b89fdaa214dde99e7fa14bb572
parent87c780ae28add8ef57656f4da8e9021307a55bb1
[TASK] Make array utility test do not depend on undefined behaviour

ArrayUtilityTests expect that order of elements with the same value
will not change. PHP doesn't guarantee that, so it doesn't make
sense to test this behaviour.

This test fails under HHVM which has different sorting
implementation than PHP 5.

Actually PHP 7 is going into the same direction, so sooner
or later this test will fail also under PHP.
See https://github.com/php/php-src/pull/999
and https://github.com/facebook/hhvm/issues/4649

Resolves: #64322
Releases: master
Change-Id: Ie48e57456eee20ff9b1a0efc0ac38413f16c5de1
Reviewed-on: http://review.typo3.org/36055
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php