Skip to content

Commit 207dab1

Browse files
Merge branch '3.4' into 4.3
* 3.4: Simpler example for Apache basic auth workaround [Console] Fix trying to access array offset on value of type int [Process] add tests for php executable finder if file does not exist [Cache] Make sure we get the correct number of values from redis::mget()
2 parents 3b2e0cb + 4e98a87 commit 207dab1

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)