/** * Get the static instance of this factory. * * @return HandleFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(StubFactory::instance(), StubVerifierFactory::instance(), AssertionRenderer::instance(), ExceptionAssertionRecorder::instance(), Invoker::instance()); } return self::$instance; }
/** * Get the static instance of this factory. * * @return SpyVerifierFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(SpyFactory::instance(), MatcherFactory::instance(), MatcherVerifier::instance(), GeneratorVerifierFactory::instance(), IterableVerifierFactory::instance(), CallVerifierFactory::instance(), ExceptionAssertionRecorder::instance(), AssertionRenderer::instance(), FunctionHookManager::instance()); } return self::$instance; }
/** * Get the static instance of this factory. * * @return IterableVerifierFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(MatcherFactory::instance(), ExceptionAssertionRecorder::instance(), AssertionRenderer::instance()); } return self::$instance; }
/** * Get the static instance of this driver. * * @return FacadeDriver The static driver. */ public static function instance() { if (!self::$instance) { self::$instance = new self(ExceptionAssertionRecorder::instance()); } return self::$instance; }