Eloquent\Phony\Verification\IterableVerifier::used PHP Method

used() public method

Throws an exception unless iteration of the subject commenced.
public used ( ) : Eloquent\Phony\Event\EventCollection
return Eloquent\Phony\Event\EventCollection The result.
    public function used()
    {
        $cardinality = $this->cardinality;
        if ($result = $this->checkUsed()) {
            return $result;
        }
        return $this->assertionRecorder->createFailure($this->assertionRenderer->renderIterableUsed($this->subject, $cardinality, $this->isGenerator));
    }