Skip to content

Commit

Permalink
MAGETWO-81646: PHP Livecodetest testCodeStyle() method does not use w…
Browse files Browse the repository at this point in the history
…hitelist files #11362
  • Loading branch information
Oleksii Korshenko committed Oct 16, 2017
1 parent 2f22260 commit f59cfe2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,12 @@ public function testCodeStyle()

$reportFile = self::$reportDir . '/phpcs_report.txt';
$codeSniffer = new CodeSniffer('Magento', $reportFile, new Wrapper());
$result = $codeSniffer->run($whiteList);
$report = file_exists($reportFile) ? file_get_contents($reportFile) : '';
$this->assertEquals(
0,
$result = $codeSniffer->run($whiteList),
"PHP Code Sniffer detected {$result} violation(s): " . PHP_EOL . file_get_contents($reportFile)
$result,
"PHP Code Sniffer detected {$result} violation(s): " . PHP_EOL . $report
);
}

Expand Down

0 comments on commit f59cfe2

Please sign in to comment.