[BUGFIX] Some unit tests fail in Core::FolderTest
authorNicole Cordes <nicole@cordes.co>
Mon, 19 Nov 2012 22:37:59 +0000 (23:37 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 26 Nov 2012 23:09:36 +0000 (00:09 +0100)
Due to use of type hint callable which is available at PHP 5.4 unit tests
fail for lower PHP versions.

Change-Id: I558d019095f31dbd659b5cc87f19679110c74e8f
Fixes: #43123
Releases: 6.0
Reviewed-on: http://review.typo3.org/16595
Reviewed-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Wouter Wolters
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Tests/Functional/Resource/FolderTest.php

index 12b667b..610af22 100644 (file)
@@ -42,9 +42,10 @@ class FolderTest extends BaseTestCase {
         * Helper method for testing restore of filters in the storage
         *
         * @param $filterMode
-        * @param callable $listCallback
+        * @param $listCallback
         */
-       protected function _testFileAndFoldernameFilterRestoreAfterList($filterMode, callable $listCallback) {
+       protected function _testFileAndFoldernameFilterRestoreAfterList($filterMode, $listCallback) {
+               $this->isType('callable')->evaluate($listCallback);
                $storageFilter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
                $storageFilter->setAllowedFileExtensions('jpg,png');
                $folderFilter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();