Eloquent\Phony\Call\CallVerifier::checkCalledWith PHP Method

checkCalledWith() public method

Checks if called with the supplied arguments.
public checkCalledWith ( ) : Eloquent\Phony\Event\EventCollection | null
return Eloquent\Phony\Event\EventCollection | null The result.
    public function checkCalledWith()
    {
        $cardinality = $this->resetCardinality()->assertSingular();
        $matchers = $this->matcherFactory->adaptAll(func_get_args());
        list($matchCount, $matchingEvents) = $this->matchIf($this->call, $this->matcherVerifier->matches($matchers, $this->call->arguments()->all()));
        if ($cardinality->matches($matchCount, 1)) {
            return $this->assertionRecorder->createSuccess($matchingEvents);
        }
    }