Skip to content

Commit 1568a2e

Browse files
Merge branch '4.4' into 5.0
* 4.4: (28 commits) bug #34554 [HttpClient] Fix early cleanup of pushed HTTP/2 responses (lyrixx) Fix tests [Console] Fix commands description with numeric namespaces [HttpFoundation] Fixed typo [DI] Skip unknown method calls for factories in check types pass [EventDispatcher] Better error reporting when arguments to dispatch() are swapped improve upgrade instructions for twig.exception_controller configuration [HttpFoundation] Update CHANGELOG for PdoSessionHandler BC BREAK in 4.4 [Serializer] CsvEncoder::NO_HEADERS_KEY ignored when used in constructor [Form] Keep preferred_choices order for choice groups [Debug] work around failing chdir() on Darwin [PhpUnitBridge] Read configuration CLI directive [DI] Missing test on YamlFileLoader Revert "minor #34608 [Process] add tests for php executable finder if file does not exist (ahmedash95)" Simpler example for Apache basic auth workaround [Console] Fix trying to access array offset on value of type int [Config] Remove extra sprintf arg [HttpKernel] fix typo [HttpKernel] Support typehint to deprecated FlattenException in controller Add preview mode support for Html and Serializer error renderers ...
2 parents 110f98b + 51c0135 commit 1568a2e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tests/PhpExecutableFinderTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,16 @@ public function testFindArguments()
4646
$this->assertEquals($f->findArguments(), [], '::findArguments() returns no arguments');
4747
}
4848
}
49+
50+
public function testNotExitsBinaryFile()
51+
{
52+
$f = new PhpExecutableFinder();
53+
$phpBinaryEnv = PHP_BINARY;
54+
putenv('PHP_BINARY=/usr/local/php/bin/php-invalid');
55+
56+
$this->assertFalse($f->find(), '::find() returns false because of not exist file');
57+
$this->assertFalse($f->find(false), '::find(false) returns false because of not exist file');
58+
59+
putenv('PHP_BINARY='.$phpBinaryEnv);
60+
}
4961
}

0 commit comments

Comments
 (0)