We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f22260 commit f59cfe2Copy full SHA for f59cfe2
dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php
@@ -206,10 +206,12 @@ public function testCodeStyle()
206
207
$reportFile = self::$reportDir . '/phpcs_report.txt';
208
$codeSniffer = new CodeSniffer('Magento', $reportFile, new Wrapper());
209
+ $result = $codeSniffer->run($whiteList);
210
+ $report = file_exists($reportFile) ? file_get_contents($reportFile) : '';
211
$this->assertEquals(
212
0,
- $result = $codeSniffer->run($whiteList),
- "PHP Code Sniffer detected {$result} violation(s): " . PHP_EOL . file_get_contents($reportFile)
213
+ $result,
214
+ "PHP Code Sniffer detected {$result} violation(s): " . PHP_EOL . $report
215
);
216
}
217
0 commit comments