[FOLLOWUP][BUGFIX] Only count items in ForViewHelper when ``iteration`` argument... 20/40720/4
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 29 Jun 2015 13:40:04 +0000 (15:40 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 29 Jun 2015 15:25:07 +0000 (17:25 +0200)
Accidently merged a ::class call into 6.2, where PHP 5.3 still needs to work.

Change-Id: Ie6723af5ddf7c7f3dbe35e8ffc921dbe223ac6ff
Releases: 6.2
Relates: #67801
Reviewed-on: http://review.typo3.org/40720
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/fluid/Tests/Unit/ViewHelpers/ForViewHelperTest.php

index 13a4e1c..e77dfcd 100644 (file)
@@ -403,7 +403,7 @@ class ForViewHelperTest extends \TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelp
 
                $viewHelperNode = new \TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Fixtures\ConstraintSyntaxTreeNode($this->templateVariableContainer);
 
-               $mockItems = $this->getMockBuilder(\ArrayObject::class)->setMethods(['count'])->disableOriginalConstructor()->getMock();
+               $mockItems = $this->getMock('ArrayObject', array('count'), array(), '', FALSE);
                $mockItems->expects($this->never())->method('count');
                $this->arguments['each'] = $mockItems;
                $this->arguments['as'] = 'innerVariable';