instance() 공개 정적인 메소드

Get the static instance of this factory.
public static instance ( ) : IterableVerifierFactory
리턴 IterableVerifierFactory The static factory.
예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }