Esempio n. 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;
 }
Esempio n. 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;
 }