Issue Bug Closed

#65318ExtensionManagementUtilityTest::addTcaSelectItemInsertsItemAtSpecifiedPosition

Alexander Opitz 02/25/15, 11:06 updated 10/21/17, 17:45

Description

TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest::addTcaSelectItemInsertsItemAtSpecifiedPosition with data set "add at end of array" ('', '', array(array('firstElement'), array('matchMe'), array('thirdElement'), array('insertedElement')))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (...)
     2 => Array (...)
-    3 => Array (...)
+    4 => Array (...)
 )

/home/opitz/projects/typo3-master/typo3-src/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php:754
/home/opitz/projects/neos-git/Packages/Libraries/phpunit/phpunit/phpunit7:56
TYPO3\CMS\Core\Tests\Unit\Utility\ExtensionManagementUtilityTest::addTcaSelectItemInsertsItemAtSpecifiedPosition with data set "add at end if relative position was not found" ('notExistingItem', 'after', array(array('firstElement'), array('matchMe'), array('thirdElement'), array('insertedElement')))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (...)
     2 => Array (...)
-    3 => Array (...)
+    4 => Array (...)
 )

=> array_values/array_slice/… PHP7 misbehavior, internal next key seams 1 to high for next insert.
=> Create ticket in PHP issue tracker

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.