public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $kernel = new \AppKernel('test', true);
     $app = new Application($kernel);
     $app->addCommands(array(new DropDatabaseDoctrineCommand()));
     $kernel->boot();
     $command = $app->find('doctrine:database:drop');
     $commandTester = new CommandTester($command);
     $commandTester->execute(array('command' => $command->getName(), '--force' => true));
     $kernel->shutdown();
 }
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $kernel = new \AppKernel('test', true);
     $app = new Application($kernel);
     $app->addCommands(array(new DropSchemaDoctrineODMCommand()));
     $kernel->boot();
     $command = $app->find('doctrine:mongodb:schema:drop');
     $commandTester = new CommandTester($command);
     $commandTester->execute(array('command' => $command->getName()));
     $kernel->shutdown();
 }