@@ -60,7 +60,7 @@ public function testNotExistsFile()
60
60
public function testEmptyFile ()
61
61
{
62
62
$ parallelLint = new ParallelLint ($ this ->getPhpExecutable ());
63
- $ result = $ parallelLint ->lint (array (__DIR__ . '/fixtures/fixture-01/empty-file ' ));
63
+ $ result = $ parallelLint ->lint (array (PL_TESTROOT . '/fixtures/fixture-01/empty-file ' ));
64
64
65
65
$ this ->assertSame (1 , $ result ->getCheckedFilesCount ());
66
66
$ this ->assertSame (0 , $ result ->getFilesWithSyntaxErrorCount ());
@@ -71,7 +71,7 @@ public function testEmptyFile()
71
71
public function testValidFile ()
72
72
{
73
73
$ parallelLint = new ParallelLint ($ this ->getPhpExecutable ());
74
- $ result = $ parallelLint ->lint (array (__DIR__ . '/fixtures/fixture-02/example.php ' ));
74
+ $ result = $ parallelLint ->lint (array (PL_TESTROOT . '/fixtures/fixture-02/example.php ' ));
75
75
76
76
$ this ->assertSame (1 , $ result ->getCheckedFilesCount ());
77
77
$ this ->assertSame (0 , $ result ->getFilesWithSyntaxErrorCount ());
@@ -81,7 +81,7 @@ public function testValidFile()
81
81
public function testInvalidFile ()
82
82
{
83
83
$ parallelLint = new ParallelLint ($ this ->getPhpExecutable ());
84
- $ result = $ parallelLint ->lint (array (__DIR__ . '/fixtures/fixture-03/example.php ' ));
84
+ $ result = $ parallelLint ->lint (array (PL_TESTROOT . '/fixtures/fixture-03/example.php ' ));
85
85
86
86
$ this ->assertSame (1 , $ result ->getCheckedFilesCount ());
87
87
$ this ->assertSame (1 , $ result ->getFilesWithSyntaxErrorCount ());
@@ -92,7 +92,7 @@ public function testInvalidFile()
92
92
public function testDeprecated ()
93
93
{
94
94
$ parallelLint = new ParallelLint ($ this ->getPhpExecutable ());
95
- $ result = $ parallelLint ->lint (array (__DIR__ . '/fixtures/fixture-05/Foo.php ' ));
95
+ $ result = $ parallelLint ->lint (array (PL_TESTROOT . '/fixtures/fixture-05/Foo.php ' ));
96
96
$ this ->assertSame (1 , $ result ->getCheckedFilesCount ());
97
97
$ this ->assertSame (0 , $ result ->getFilesWithSyntaxErrorCount ());
98
98
$ this ->assertFalse ($ result ->hasSyntaxError ());
@@ -104,7 +104,7 @@ public function testDeprecated()
104
104
105
105
$ parallelLint = new ParallelLint ($ this ->getPhpExecutable ());
106
106
$ parallelLint ->setShowDeprecated (true );
107
- $ result = $ parallelLint ->lint (array (__DIR__ . '/fixtures/fixture-05/Foo.php ' ));
107
+ $ result = $ parallelLint ->lint (array (PL_TESTROOT . '/fixtures/fixture-05/Foo.php ' ));
108
108
$ this ->assertSame (1 , $ result ->getCheckedFilesCount ());
109
109
$ this ->assertSame (1 , $ result ->getFilesWithSyntaxErrorCount ());
110
110
$ this ->assertTrue ($ result ->hasSyntaxError ());
@@ -115,8 +115,8 @@ public function testValidAndInvalidFiles()
115
115
{
116
116
$ parallelLint = new ParallelLint ($ this ->getPhpExecutable ());
117
117
$ result = $ parallelLint ->lint (array (
118
- __DIR__ . '/fixtures/fixture-02/example.php ' ,
119
- __DIR__ . '/fixtures/fixture-03/example.php ' ,
118
+ PL_TESTROOT . '/fixtures/fixture-02/example.php ' ,
119
+ PL_TESTROOT . '/fixtures/fixture-03/example.php ' ,
120
120
));
121
121
122
122
$ this ->assertSame (2 , $ result ->getCheckedFilesCount ());
0 commit comments