src/Stub/StubVerifierFactory.php
public function createFromCallback($callback): StubVerifier
    {
        $stub = $this->stubFactory->create($callback);

        $verifier = new StubVerifier(
            $stub,
            $this->spyFactory->create($stub),
            $this->matcherFactory,
            $this->matcherVerifier,
            $this->generatorVerifierFactory,
            $this->iterableVerifierFactory,
            $this->callVerifierFactory,
            $this->assertionRecorder,
            $this->assertionRenderer,
            $this->generatorAnswerBuilderFactory
        );
        $verifier->setSelf($verifier);

        return $verifier;
    }
public function createFromCallback($callback): StubVerifier
    {
        $stub = $this->stubFactory->create($callback);

        $verifier = new StubVerifier(
            $stub,
            $this->spyFactory->create($stub),
            $this->matcherFactory,
            $this->matcherVerifier,
            $this->generatorVerifierFactory,
            $this->iterableVerifierFactory,
            $this->callVerifierFactory,
            $this->assertionRecorder,
            $this->assertionRenderer,
            $this->generatorAnswerBuilderFactory
        );
        $verifier->setSelf($verifier);

        return $verifier;
    }
public function createFromCallback ( $ callback ) : StubVerifier { $ stub = $ this -> stubFactory -> create ( $ callback ) ; $ verifier = new StubVerifier ( $ stub , $ this -> spyFactory -> create ( $ stub ) , $ this -> matcherFactory , $ this -> matcherVerifier , $ this -> generatorVerifierFactory , $ this -> iterableVerifierFactory , $ this -> callVerifierFactory , $ this -> assertionRecorder , $ this -> assertionRenderer , $ this -> generatorAnswerBuilderFactory ) ; $ verifier -> setSelf ( $ verifier ) ; return $ verifier ; }
Create a new stub verifier for the supplied callback.

@param callable|null $callback The callback, or null to create an anonymous stub.

@return StubVerifier The newly created stub verifier.
Create a new stub verifier for the supplied callback .