Get the static instance of this renderer.
public static instance ( ) : |
||
리턴 | The static renderer. |
/** * 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; }
/** * Construct a new unused stub criteria exception. * * @param array<Matchable> $criteria The criteria. */ public function __construct(array $criteria) { $this->criteria = $criteria; parent::__construct(sprintf('Stub criteria %s were never used. ' . 'Check for incomplete stub rules.', var_export(AssertionRenderer::instance()->renderMatchers($criteria), true))); }