Skip to content

Commit 4a677a2

Browse files
committed
DEVOPS-2174: Fix static tests
1 parent 70bd853 commit 4a677a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function setUpBeforeClass()
4343
*/
4444
public function testCodeStyle()
4545
{
46-
$reportFile = self::$reportDir . '/less_report.txt';
46+
$reportFile = self::$reportDir . '/csless_report.txt';
4747
$wrapper = new LessWrapper();
4848
$codeSniffer = new CodeSniffer(realpath(__DIR__ . '/_files/lesscs'), $reportFile, $wrapper);
4949

@@ -57,10 +57,11 @@ public function testCodeStyle()
5757

5858
$result = $codeSniffer->run($this->filterFiles($fileList));
5959

60+
$report = file_exists($reportFile) ? file_get_contents($reportFile) : "";
6061
$this->assertEquals(
6162
0,
6263
$result,
63-
"PHP Code Sniffer has found {$result} error(s): See detailed report in {$reportFile}"
64+
"PHP Code Sniffer has found {$result} error(s): " . PHP_EOL . $report
6465
);
6566
}
6667

0 commit comments

Comments
 (0)