Eccube\Tests\EccubeTestCase::tearDown PHP Method

tearDown() public method

トランザクションをロールバックする.
public tearDown ( )
    public function tearDown()
    {
        parent::tearDown();
        if (!$this->isSqliteInMemory()) {
            $this->app['orm.em']->getConnection()->rollback();
            $this->app['orm.em']->getConnection()->close();
        }
        $this->cleanUpProperties();
        $this->app = null;
    }

Usage Example

Ejemplo n.º 1
0
 public function tearDown()
 {
     $to = __DIR__ . '/../../../../../app/Plugin/HookPoint';
     // テスト用プラグインを削除.
     $fs = new Filesystem();
     $fs->remove($to);
     parent::tearDown();
     $this->client = null;
 }
All Usage Examples Of Eccube\Tests\EccubeTestCase::tearDown