@@ -41,12 +41,12 @@ public function testFind()
4141 $ this ->markTestSkipped ('Cannot test when open_basedir is set ' );
4242 }
4343
44- $ this ->setPath (\dirname (PHP_BINARY ));
44+ $ this ->setPath (\dirname (\ PHP_BINARY ));
4545
4646 $ finder = new ExecutableFinder ();
4747 $ result = $ finder ->find ($ this ->getPhpBinaryName ());
4848
49- $ this ->assertSamePath (PHP_BINARY , $ result );
49+ $ this ->assertSamePath (\ PHP_BINARY , $ result );
5050 }
5151
5252 public function testFindWithDefault ()
@@ -88,12 +88,12 @@ public function testFindWithExtraDirs()
8888
8989 $ this ->setPath ('' );
9090
91- $ extraDirs = [\dirname (PHP_BINARY )];
91+ $ extraDirs = [\dirname (\ PHP_BINARY )];
9292
9393 $ finder = new ExecutableFinder ();
9494 $ result = $ finder ->find ($ this ->getPhpBinaryName (), null , $ extraDirs );
9595
96- $ this ->assertSamePath (PHP_BINARY , $ result );
96+ $ this ->assertSamePath (\ PHP_BINARY , $ result );
9797 }
9898
9999 public function testFindWithOpenBaseDir ()
@@ -106,12 +106,12 @@ public function testFindWithOpenBaseDir()
106106 $ this ->markTestSkipped ('Cannot test when open_basedir is set ' );
107107 }
108108
109- $ this ->iniSet ('open_basedir ' , \dirname (PHP_BINARY ).PATH_SEPARATOR .'/ ' );
109+ $ this ->iniSet ('open_basedir ' , \dirname (\ PHP_BINARY ).\ PATH_SEPARATOR .'/ ' );
110110
111111 $ finder = new ExecutableFinder ();
112112 $ result = $ finder ->find ($ this ->getPhpBinaryName ());
113113
114- $ this ->assertSamePath (PHP_BINARY , $ result );
114+ $ this ->assertSamePath (\ PHP_BINARY , $ result );
115115 }
116116
117117 public function testFindProcessInOpenBasedir ()
@@ -124,12 +124,12 @@ public function testFindProcessInOpenBasedir()
124124 }
125125
126126 $ this ->setPath ('' );
127- $ this ->iniSet ('open_basedir ' , PHP_BINARY .PATH_SEPARATOR .'/ ' );
127+ $ this ->iniSet ('open_basedir ' , \ PHP_BINARY .\ PATH_SEPARATOR .'/ ' );
128128
129129 $ finder = new ExecutableFinder ();
130130 $ result = $ finder ->find ($ this ->getPhpBinaryName (), false );
131131
132- $ this ->assertSamePath (PHP_BINARY , $ result );
132+ $ this ->assertSamePath (\ PHP_BINARY , $ result );
133133 }
134134
135135 public function testFindBatchExecutableOnWindows ()
@@ -170,6 +170,6 @@ private function assertSamePath($expected, $tested)
170170
171171 private function getPhpBinaryName ()
172172 {
173- return basename (PHP_BINARY , '\\' === \DIRECTORY_SEPARATOR ? '.exe ' : '' );
173+ return basename (\ PHP_BINARY , '\\' === \DIRECTORY_SEPARATOR ? '.exe ' : '' );
174174 }
175175}
0 commit comments