public replaceWildcards ( array $args ) : array | ||
$args | array | Raw argument list. |
리턴 | array | Argument list with expectations. |
public function replaceWildcards($args)
{
if ($args === false) {
return false;
}
for ($i = 0; $i < count($args); $i++) {
if ($args[$i] === $this->wildcard) {
$args[$i] = new AnythingExpectation();
}
}
return $args;
}