kahlan\matcher\ToReceive::match PHP Method

match() public static method

Checks that $actual receive the $expected message.
public static match ( mixed $actual, mixed $expected = null ) : boolean
$actual mixed The actual value.
$expected mixed The expected message.
return boolean
    public static function match($actual, $expected = null)
    {
        $class = get_called_class();
        $args = func_get_args();
        $actual = array_shift($args);
        return new static($actual, $args);
    }