instance() public static method

Get the static instance of this invoker.
public static instance ( ) : Invoker
return Invoker The static invoker.
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }