File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dev/tests/static/testsuite/Magento/Test/Less Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public static function setUpBeforeClass()
43
43
*/
44
44
public function testCodeStyle ()
45
45
{
46
- $ reportFile = self ::$ reportDir . '/less_report .txt ' ;
46
+ $ reportFile = self ::$ reportDir . '/csless_report .txt ' ;
47
47
$ wrapper = new LessWrapper ();
48
48
$ codeSniffer = new CodeSniffer (realpath (__DIR__ . '/_files/lesscs ' ), $ reportFile , $ wrapper );
49
49
@@ -57,10 +57,11 @@ public function testCodeStyle()
57
57
58
58
$ result = $ codeSniffer ->run ($ this ->filterFiles ($ fileList ));
59
59
60
+ $ report = file_exists ($ reportFile ) ? file_get_contents ($ reportFile ) : "" ;
60
61
$ this ->assertEquals (
61
62
0 ,
62
63
$ 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
64
65
);
65
66
}
66
67
You can’t perform that action at this time.
0 commit comments