src/Call/CallVerifier.php
public function checkCompleted(): ?EventCollection
    {
        $cardinality = $this->resetCardinality()->assertSingular();
        $endEvent = $this->call->endEvent();

        list($matchCount, $matchingEvents) =
            $this->matchIf($endEvent, $endEvent);

        if ($cardinality->matches($matchCount, 1)) {
            return $this->assertionRecorder->createSuccess($matchingEvents);
        }

        return null;
    }
public function checkCompleted(): ?EventCollection
    {
        $cardinality = $this->resetCardinality()->assertSingular();
        $endEvent = $this->call->endEvent();

        list($matchCount, $matchingEvents) =
            $this->matchIf($endEvent, $endEvent);

        if ($cardinality->matches($matchCount, 1)) {
            return $this->assertionRecorder->createSuccess($matchingEvents);
        }

        return null;
    }
public function checkCompleted ( ) : ? EventCollection { $ cardinality = $ this -> resetCardinality ( ) -> assertSingular ( ) ; $ endEvent = $ this -> call -> endEvent ( ) ; list ( $ matchCount , $ matchingEvents ) = $ this -> matchIf ( $ endEvent , $ endEvent ) ; if ( $ cardinality -> matches ( $ matchCount , 1 ) ) { return $ this -> assertionRecorder -> createSuccess ( $ matchingEvents ) ; } return null ; }
Checks if this call completed.

@return EventCollection|null        The result.
@throws InvalidCardinalityException If the cardinality is invalid.
Checks if this call completed .