Eloquent\Phony\Spy\SpyVerifier::calledWith PHP Метод

calledWith() публичный Метод

Throws an exception unless called with the supplied arguments.
public calledWith ( ) : Eloquent\Phony\Event\EventCollection
Результат Eloquent\Phony\Event\EventCollection The result.
    public function calledWith()
    {
        $cardinality = $this->cardinality;
        $matchers = $this->matcherFactory->adaptAll(func_get_args());
        if ($result = call_user_func_array(array($this, 'checkCalledWith'), $matchers)) {
            return $result;
        }
        return $this->assertionRecorder->createFailure($this->assertionRenderer->renderCalledWith($this->spy, $cardinality, $matchers));
    }