instance() public static method

Get the static instance of this invoker.
public static instance ( ) : Invoker
return Invoker The static invoker.
Beispiel #1
0
 /**
  * Get the static instance of this factory.
  *
  * @return CallFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(CallEventFactory::instance(), Invoker::instance());
     }
     return self::$instance;
 }
Beispiel #2
0
 /**
  * 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;
 }
Beispiel #3
0
 /**
  * Get the static instance of this factory.
  *
  * @return SpyFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(Sequencer::sequence('spy-label'), CallFactory::instance(), Invoker::instance(), GeneratorSpyFactory::instance(), IterableSpyFactory::instance());
     }
     return self::$instance;
 }
 /**
  * Get the static instance of this factory.
  *
  * @return GeneratorAnswerBuilderFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(InvocableInspector::instance(), Invoker::instance(), FeatureDetector::instance());
     }
     return self::$instance;
 }
Beispiel #5
0
 /**
  * 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;
 }