ActivityLog\Module::uninstall PHP Method

uninstall() public method

Uninstall module
public uninstall ( ) : boolean
return boolean
    public function uninstall()
    {
        $pdoResource = $this->getAdapter()->getDriver()->getConnection()->getResource();
        $pdoResource->exec(file_get_contents(__DIR__ . sprintf('/data/sql/uninstall-%s.sql', str_replace('pdo_', '', $this->getDriverName()))));
        return true;
    }

Usage Example

Example #1
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return void
  */
 protected function tearDown()
 {
     $this->boostrap->uninstall();
     unset($this->boostrap);
     unset($this->object);
 }