src/Call/CallVerifier.php
public function completed(): ?EventCollection
    {
        $cardinality = $this->cardinality;

        if ($result = $this->checkCompleted()) {
            return $result;
        }

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderCompleted($this->call, $cardinality)
        );
    }
public function completed(): ?EventCollection
    {
        $cardinality = $this->cardinality;

        if ($result = $this->checkCompleted()) {
            return $result;
        }

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderCompleted($this->call, $cardinality)
        );
    }
public function completed ( ) : ? EventCollection { $ cardinality = $ this -> cardinality ; if ( $ result = $ this -> checkCompleted ( ) ) { return $ result ; } return $ this -> assertionRecorder -> createFailure ( $ this -> assertionRenderer -> renderCompleted ( $ this -> call , $ cardinality ) ) ; }
Throws an exception unless this call completed.

@return EventCollection|null        The result, or null if the assertion recorder does not throw exceptions.
@throws InvalidCardinalityException If the cardinality is invalid.
@throws Throwable                   If the assertion fails, and the assertion recorder throws exceptions.
Throws an exception unless this call completed .