Revert "minor #34608 [Process] add tests for php executable finder if file does not exist (ahmedash95)"
This reverts commit5cacc5dd69
, reversing changes made tof0a6de2736
.
This commit is contained in:
parent
46eefa9610
commit
53241df2df
@ -69,16 +69,4 @@ class PhpExecutableFinderTest extends TestCase
|
||||
$this->assertEquals($f->findArguments(), [], '::findArguments() returns no arguments');
|
||||
}
|
||||
}
|
||||
|
||||
public function testNotExitsBinaryFile()
|
||||
{
|
||||
$f = new PhpExecutableFinder();
|
||||
$phpBinaryEnv = PHP_BINARY;
|
||||
putenv('PHP_BINARY=/usr/local/php/bin/php-invalid');
|
||||
|
||||
$this->assertFalse($f->find(), '::find() returns false because of not exist file');
|
||||
$this->assertFalse($f->find(false), '::find(false) returns false because of not exist file');
|
||||
|
||||
putenv('PHP_BINARY='.$phpBinaryEnv);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user