Skip to content

Commit e8f3a5b

Browse files
[EngCom] Public Pull Requests - 2.3-develop
- merged latest code from mainline branch
2 parents bf23250 + 78616e5 commit e8f3a5b

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
@@ -42,7 +42,7 @@ public static function setUpBeforeClass()
4242
*/
4343
public function testCodeStyle()
4444
{
45-
$reportFile = self::$reportDir . '/less_report.txt';
45+
$reportFile = self::$reportDir . '/csless_report.txt';
4646
$wrapper = new LessWrapper();
4747
$codeSniffer = new CodeSniffer(realpath(__DIR__ . '/_files/lesscs'), $reportFile, $wrapper);
4848

@@ -56,10 +56,11 @@ public function testCodeStyle()
5656

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

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

0 commit comments

Comments
 (0)