diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php index f682b72bb42f..b1cd0464f73a 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php @@ -26,11 +26,6 @@ */ class MethodArgumentDroppedMatcherTest extends UnitTestCase { - /** - * Subject is not notice free, disable E_NOTICES - */ - protected static $suppressNotices = true; - /** * @test */ @@ -67,7 +62,7 @@ public function hitsFromFixtureAreFound() /** * @return array */ - public function matchesReturnsExpectedRestFilesDataProvider() + public function matchesReturnsExpectedRestFilesDataProvider(): array { return [ 'two rest candidates with same number of arguments' => [ @@ -231,6 +226,9 @@ public function matchesReturnsExpectedRestFilesDataProvider() /** * @test * @dataProvider matchesReturnsExpectedRestFilesDataProvider + * @param array $configuration + * @param string $phpCode + * @param array $expected */ public function matchesReturnsExpectedRestFiles(array $configuration, string $phpCode, array $expected) { @@ -244,6 +242,10 @@ public function matchesReturnsExpectedRestFiles(array $configuration, string $ph $traverser->traverse($statements); $result = $subject->getMatches(); - $this->assertEquals($expected[0]['restFiles'], $result[0]['restFiles']); + if (isset($expected[0], $result[0])) { + $this->assertEquals($expected[0]['restFiles'], $result[0]['restFiles']); + } else { + $this->assertEquals($expected, $result); + } } }