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 @@ -42,7 +42,7 @@ public static function setUpBeforeClass()
42
42
*/
43
43
public function testCodeStyle ()
44
44
{
45
- $ reportFile = self ::$ reportDir . '/less_report .txt ' ;
45
+ $ reportFile = self ::$ reportDir . '/csless_report .txt ' ;
46
46
$ wrapper = new LessWrapper ();
47
47
$ codeSniffer = new CodeSniffer (realpath (__DIR__ . '/_files/lesscs ' ), $ reportFile , $ wrapper );
48
48
@@ -56,10 +56,11 @@ public function testCodeStyle()
56
56
57
57
$ result = $ codeSniffer ->run ($ this ->filterFiles ($ fileList ));
58
58
59
+ $ report = file_exists ($ reportFile ) ? file_get_contents ($ reportFile ) : "" ;
59
60
$ this ->assertEquals (
60
61
0 ,
61
62
$ 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
63
64
);
64
65
}
65
66
You can’t perform that action at this time.
0 commit comments