Skip to content

Commit 46c300e

Browse files
committed
MAGETWO-94083: Impossible get information about static errors on PR
- create empty report file for the case when there no php and phtml files
1 parent 2f189c0 commit 46c300e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public function testCodeStyle()
264264
touch($reportFile);
265265
}
266266
$codeSniffer = new CodeSniffer('Magento', $reportFile, new Wrapper());
267-
$result = $codeSniffer->run($isFullScan ? $this->getFullWhitelist() : []);
267+
$result = $codeSniffer->run($isFullScan ? $this->getFullWhitelist() : self::getWhitelist(['php', 'phtml']));
268268
$report = file_get_contents($reportFile);
269269
$this->assertEquals(
270270
0,

0 commit comments

Comments
 (0)