| 1 | <?php |
||
| 7 | class CliFunctionChecker |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \RMiller\BehatSpec\Extension\PhpSpecExtension\Process\CachingExecutableFinder |
||
| 11 | */ |
||
| 12 | private $executableFinder; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \RMiller\BehatSpec\Extension\PhpSpecExtension\Process\CachingExecutableFinder $executableFinder |
||
| 16 | */ |
||
| 17 | public function __construct(CachingExecutableFinder $executableFinder) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $function |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | public function functionCanBeUsed($function) |
||
| 33 | } |
||
| 34 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: