コード例 #1
0
 /**
  * @return \Stagehand\TestRunner\Core\ApplicationContext
  */
 protected function createApplicationContext()
 {
     $containerClass = 'Stagehand\\TestRunner\\DependencyInjection\\' . $this->getPluginID() . 'Container';
     $container = new $containerClass();
     $componentFactory = new TestComponentFactory();
     $componentFactory->setContainer($container);
     $applicationContext = new TestApplicationContext();
     $applicationContext->setComponentFactory($componentFactory);
     $applicationContext->setEnvironment(new Environment());
     return $applicationContext;
 }
コード例 #2
0
 /**
  * @return \Stagehand\TestRunner\Core\ApplicationContext
  */
 protected function createApplicationContext()
 {
     $container = new Container();
     $componentFactory = new TestComponentFactory();
     $componentFactory->setContainer($container);
     $applicationContext = new TestApplicationContext();
     $applicationContext->setComponentFactory($componentFactory);
     $applicationContext->setEnvironment(new TestEnvironment());
     return $applicationContext;
 }