Project

General

Profile

Bug #65318

Updated by Alexander Opitz over 9 years ago

<pre> 
 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 
 </pre> 

 <pre> 
 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 (...) 
  ) 
 </pre> 

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

Back