public function dropDatabase() { $dropSchemaSql = $this->getDropDatabaseSQL(); $conn = $this->_em->getConnection(); foreach ($dropSchemaSql as $sql) { $conn->executeQuery($sql); } }
protected function tearDown() { // Clean anything still idle in the UOW $this->_em->clear(); // Clear out anything set in the db (schema is recreated on setUp() $this->_schemaTool->dropDatabase(); }