Eloquent\Phony\Stub\StubVerifierFactory::create PHP Метод

create() публичный Метод

Create a new stub verifier.
public create ( Eloquent\Phony\Stub\Stub $stub = null, Eloquent\Phony\Spy\Spy $spy = null ) : StubVerifier
$stub Eloquent\Phony\Stub\Stub The stub, or null to create an anonymous stub.
$spy Eloquent\Phony\Spy\Spy The spy, or null to spy on the supplied stub.
Результат StubVerifier The newly created stub verifier.
    public function create(Stub $stub = null, Spy $spy = null)
    {
        if (!$stub) {
            $stub = $this->stubFactory->create();
        }
        if (!$spy) {
            $spy = $this->spyFactory->create($stub);
        }
        return new StubVerifier($stub, $spy, $this->matcherFactory, $this->matcherVerifier, $this->generatorVerifierFactory, $this->iterableVerifierFactory, $this->callVerifierFactory, $this->assertionRecorder, $this->assertionRenderer, $this->generatorAnswerBuilderFactory);
    }