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

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

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderResponded($this->spy, $cardinality)
        );
    }
public function responded(): ?EventCollection
    {
        $cardinality = $this->cardinality;

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

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderResponded($this->spy, $cardinality)
        );
    }
public function responded ( ) : ? EventCollection { $ cardinality = $ this -> cardinality ; if ( $ result = $ this -> checkResponded ( ) ) { return $ result ; } return $ this -> assertionRecorder -> createFailure ( $ this -> assertionRenderer -> renderResponded ( $ this -> spy , $ cardinality ) ) ; }
Throws an exception unless this spy responded.

@return EventCollection|null The result, or null if the assertion recorder does not throw exceptions.
@throws Throwable            If the assertion fails, and the assertion recorder throws exceptions.
Throws an exception unless this spy responded .