PHPUnit_Extensions_Database_TestCase::tearDown PHP Method

tearDown() protected method

Performs operation returned by getSetUpOperation().
protected tearDown ( )
    protected function tearDown()
    {
        $this->getDatabaseTester()->setTearDownOperation($this->getTearDownOperation());
        $this->getDatabaseTester()->setDataSet($this->getDataSet());
        $this->getDatabaseTester()->onTearDown();
        /**
         * Destroy the tester after the test is run to keep DB connections
         * from piling up.
         */
        $this->databaseTester = NULL;
    }

Usage Example

示例#1
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->conn->close();
     $this->conn = null;
     self::$pdo = null;
 }
All Usage Examples Of PHPUnit_Extensions_Database_TestCase::tearDown