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

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

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderIterated($this->call, $cardinality)
        );
    }
public function iterated(): ?IterableVerifier
    {
        $cardinality = $this->cardinality;

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

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderIterated($this->call, $cardinality)
        );
    }
public function iterated ( ) : ? IterableVerifier { $ cardinality = $ this -> cardinality ; if ( $ result = $ this -> checkIterated ( ) ) { return $ result ; } return $ this -> assertionRecorder -> createFailure ( $ this -> assertionRenderer -> renderIterated ( $ this -> call , $ cardinality ) ) ; }
Throws an exception unless this call returned an iterable.

@return IterableVerifier            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 returned an iterable .