1 | <?php |
||
7 | class CliFunctionChecker |
||
8 | { |
||
9 | /** |
||
10 | * @var \RMiller\BehatSpec\Extension\PhpSpecRunExtension\Process\CachingExecutableFinder |
||
11 | */ |
||
12 | private $executableFinder; |
||
13 | |||
14 | /** |
||
15 | * @param \RMiller\BehatSpec\Extension\PhpSpecRunExtension\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!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: