/** * Get the static instance of this factory. * * @return CallVerifierFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(MatcherFactory::instance(), MatcherVerifier::instance(), GeneratorVerifierFactory::instance(), IterableVerifierFactory::instance(), ExceptionAssertionRecorder::instance(), AssertionRenderer::instance()); } return self::$instance; }
/** * Get the static instance of this factory. * * @return StubVerifierFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(StubFactory::instance(), SpyFactory::instance(), MatcherFactory::instance(), MatcherVerifier::instance(), GeneratorVerifierFactory::instance(), IterableVerifierFactory::instance(), CallVerifierFactory::instance(), ExceptionAssertionRecorder::instance(), AssertionRenderer::instance(), GeneratorAnswerBuilderFactory::instance(), FunctionHookManager::instance()); } return self::$instance; }
/** * Get the static instance of this renderer. * * @return AssertionRenderer The static renderer. */ public static function instance() { if (!self::$instance) { self::$instance = new self(MatcherVerifier::instance(), InlineExporter::instance(), DifferenceEngine::instance(), FeatureDetector::instance()); } return self::$instance; }
/** * Get the static instance of this factory. * * @return StubFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(Sequencer::sequence('stub-label'), MatcherFactory::instance(), MatcherVerifier::instance(), Invoker::instance(), InvocableInspector::instance(), EmptyValueFactory::instance(), GeneratorAnswerBuilderFactory::instance()); } return self::$instance; }