Exemplo n.º 1
0
 public function testServicesShutDownInCubex()
 {
     $cubex = new Cubex();
     $manager = new ServiceManager();
     $manager->setCubex($cubex);
     $manager->boot();
     $manager->addService("smtester", 'CubexTest\\Cubex\\ServiceManager\\TestService', []);
     $cubex->instance('service.manager', $manager);
     $tester = $cubex->make('smtester');
     $cubex->terminate(Request::createFromGlobals(), new Response());
     $this->assertTrue($tester->shutdown);
 }