$this->
assertEquals($current,
$f->
find(false
), '::find() returns the executable PHP'
);
} /**
* tests find() with the env var PHP_PATH.
*/
public function testFindArguments() { $f =
new PhpExecutableFinder();
if ('phpdbg' === \PHP_SAPI
) { $this->
assertEquals(['-qrr'
],
$f->
findArguments(), '::findArguments() returns phpdbg arguments'
);
} else { $this->
assertEquals([],
$f->
findArguments(), '::findArguments() returns no arguments'
);
} } public function testNotExitsBinaryFile() { $f =
new PhpExecutableFinder();
$originalPhpBinary =
getenv('PHP_BINARY'
);