Jsor\Doctrine\PostGIS\AbstractFunctionalTestCase::tearDown PHP Method

tearDown() protected method

protected tearDown ( )
    protected function tearDown()
    {
        parent::tearDown();
        if (!self::$_entityTablesCreated) {
            return;
        }
        $em = $this->_getEntityManager();
        $classes = array();
        foreach (self::$_entityTablesCreated as $className => $flag) {
            $classes[] = $em->getClassMetadata($className);
        }
        $this->_getSchemaTool()->dropSchema($classes);
        self::$_entityTablesCreated = array();
    }

Usage Example

 protected function tearDown()
 {
     parent::tearDown();
     $this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_points_drop.sql');
 }