File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
src/Symfony/Component/Process/Tests Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,27 @@ public function testFindWithPhpPath()
43
43
}
44
44
45
45
/**
46
- * tests find() with the env var PHP_PATH.
46
+ * tests find() with the constant PHP_BINARY.
47
+ *
48
+ * @requires PHP 5.4
49
+ */
50
+ public function testFind ()
51
+ {
52
+ if (defined ('HHVM_VERSION ' )) {
53
+ $ this ->markTestSkipped ('Should not be executed in HHVM context. ' );
54
+ }
55
+
56
+ $ f = new PhpExecutableFinder ();
57
+
58
+ $ current = PHP_BINARY ;
59
+ $ args = 'phpdbg ' === PHP_SAPI ? ' -qrr ' : '' ;
60
+
61
+ $ this ->assertEquals ($ current .$ args , $ f ->find (), '::find() returns the executable PHP ' );
62
+ $ this ->assertEquals ($ current , $ f ->find (false ), '::find() returns the executable PHP ' );
63
+ }
64
+
65
+ /**
66
+ * tests find() with the env var / constant PHP_BINARY with HHVM.
47
67
*/
48
68
public function testFindWithHHVM ()
49
69
{
You can’t perform that action at this time.
0 commit comments