Skip to content

Commit

Permalink
[TASK] Make MethodArgumentUnusedMatcherTest notice free
Browse files Browse the repository at this point in the history
Releases: master
Resolves: #84318
Change-Id: I04cf297b740ec6022a70f8b48d4d7be48e72854b
Reviewed-on: https://review.typo3.org/56191
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
janhelke authored and lolli42 committed Mar 15, 2018
1 parent 34478fd commit 3756cd3
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -26,11 +26,6 @@
*/
class MethodArgumentUnusedMatcherTest extends UnitTestCase
{
/**
* Subject is not notice free, disable E_NOTICES
*/
protected static $suppressNotices = true;

/**
* @test
*/
Expand Down Expand Up @@ -233,6 +228,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);
}
}
}

0 comments on commit 3756cd3

Please sign in to comment.