Revert "minor #34608 [Process] add tests for php executable finder if file does not exist (ahmedash95)"

This reverts commit 5cacc5dd69, reversing
changes made to f0a6de2736.
This commit is contained in:
Nicolas Grekas 2019-11-28 11:05:51 +01:00
parent 46eefa9610
commit 53241df2df

View File

@ -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);
}
}