public createFromCallback ( callable | null $callback = null ) : |
||
$callback | callable | null | The callback, or null to create an anonymous stub. |
return | 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);
}