tearDown() public méthode

トランザクションをロールバックする.
public tearDown ( )
 public function tearDown()
 {
     $to = __DIR__ . '/../../../../../app/Plugin/HookPoint';
     // テスト用プラグインを削除.
     $fs = new Filesystem();
     $fs->remove($to);
     parent::tearDown();
     $this->client = null;
 }
Exemple #2
0
 public function tearDown()
 {
     /** @var EntityManager $em */
     $em = $this->app['orm.em'];
     $conn = $em->getConnection();
     $conn->rollback();
     $this->dropTable($conn->getWrappedConnection());
     $conn->beginTransaction();
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->client = null;
 }
 public function tearDown()
 {
     parent::tearDown();
 }