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

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

Create a new stub verifier for the supplied callback.
public createFromCallback ( callable | null $callback = null ) : StubVerifier
$callback callable | null The callback, or null to create an anonymous stub.
Результат StubVerifier The newly created stub verifier.
    public function createFromCallback($callback = null)
    {
        $stub = $this->stubFactory->create($callback);
        return new StubVerifier($stub, $this->spyFactory->create($stub), $this->matcherFactory, $this->matcherVerifier, $this->generatorVerifierFactory, $this->iterableVerifierFactory, $this->callVerifierFactory, $this->assertionRecorder, $this->assertionRenderer, $this->generatorAnswerBuilderFactory);
    }