Skip to content

Commit

Permalink
[BUGFIX] Fix failing functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabRecht committed Apr 19, 2022
1 parent 1c7cf3e commit 0cd56b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function closureFunctionIsApplied($filePattern)
$this->assertNotEmpty($files);

foreach ($files as $file => $fileContent) {
$this->assertStringContainsString('call_user_func(function () {', $fileContent);
$this->assertStringContainsString('call_user_func(static function () {', $fileContent);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/FileCollection/PhpFileCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ public function getFilesCombinesPhpFileFlags()

$this->assertArrayHasKey('ext_tables.php', $files);
$this->assertContains('defined(\'TYPO3_MODE\') || die();', $files['ext_tables.php']);
$this->assertContains('call_user_func(function () {', $files['ext_tables.php']);
$this->assertContains('call_user_func(static function () {', $files['ext_tables.php']);
}
}

0 comments on commit 0cd56b4

Please sign in to comment.