예제 #1
0
 public function testSetUpBeforeClass()
 {
     $test = new KernelTestCase();
     $reflection = new \ReflectionObject($test);
     $property = $reflection->getProperty('container');
     $property->setAccessible(true);
     $method = $reflection->getMethod('getContainer');
     $method->setAccessible(true);
     $property->setValue($test, null);
     $this->assertNotInstanceOf('Symfony\\Component\\DependencyInjection\\ContainerInterface', $method->invoke($test));
     KernelTestCase::setUpBeforeClass();
     $this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\ContainerInterface', $method->invoke($test));
 }