src/Spy/SpyVerifier.php
public function checkCalled(): ?EventCollection
    {
        $cardinality = $this->resetCardinality();

        $calls = $this->spy->allCalls();
        $callCount = count($calls);

        if ($cardinality->matches($callCount, $callCount)) {
            return $this->assertionRecorder->createSuccess($calls);
        }

        return null;
    }
public function checkCalled(): ?EventCollection
    {
        $cardinality = $this->resetCardinality();

        $calls = $this->spy->allCalls();
        $callCount = count($calls);

        if ($cardinality->matches($callCount, $callCount)) {
            return $this->assertionRecorder->createSuccess($calls);
        }

        return null;
    }
public function checkCalled ( ) : ? EventCollection { $ cardinality = $ this -> resetCardinality ( ) ; $ calls = $ this -> spy -> allCalls ( ) ; $ callCount = count ( $ calls ) ; if ( $ cardinality -> matches ( $ callCount , $ callCount ) ) { return $ this -> assertionRecorder -> createSuccess ( $ calls ) ; } return null ; }
Checks if called.

@return EventCollection|null The result.
Checks if called .