public function testTearDownAfterClass()
 {
     $test = new KernelTestCase();
     $reflection = new \ReflectionObject($test);
     $property = $reflection->getProperty('container');
     $property->setAccessible(true);
     $method = $reflection->getMethod('getContainer');
     $method->setAccessible(true);
     $dir = static::$container->getParameter('kernel.cache_dir');
     $this->assertTrue(scandir($dir) > 5);
     KernelTestCase::tearDownAfterClass();
     $this->assertCount(2, scandir($dir));
 }
Beispiel #2
0
 public function tearDown()
 {
     parent::tearDown();
     static::tearDownFixturePaths();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->config = new ConfigContainer($this->getContainer());
 }