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

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

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderGenerated($this->spy, $cardinality)
        );
    }
public function generated(): ?GeneratorVerifier
    {
        $cardinality = $this->cardinality;

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

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderGenerated($this->spy, $cardinality)
        );
    }
public function generated ( ) : ? GeneratorVerifier { $ cardinality = $ this -> cardinality ; if ( $ result = $ this -> checkGenerated ( ) ) { return $ result ; } return $ this -> assertionRecorder -> createFailure ( $ this -> assertionRenderer -> renderGenerated ( $ this -> spy , $ cardinality ) ) ; }
Throws an exception unless this spy returned a generator.

@return GeneratorVerifier 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 returned a generator .