예제 #1
0
 public function tearDown()
 {
     parent::tearDown();
     $this->app['orm.em']->getConnection()->close();
     $this->app = null;
     $this->client = null;
 }
예제 #2
0
 public function tearDown()
 {
     parent::tearDown();
     foreach ($this->dataInsertUser as $dataUser) {
         $this->app['user.service']->destroy($dataUser['name']);
     }
 }
예제 #3
0
 /**
  * トランザクションをロールバックする.
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->app['orm.em']->getConnection()->rollback();
     $this->app['orm.em']->getConnection()->close();
     $this->cleanUpProperties();
 }
예제 #4
0
 public function tearDown()
 {
     parent::tearDown();
     $this->app['storage']->close();
     $fs = new Filesystem();
     $fs->remove($this->baseDir);
 }
 /** {@inheritdoc} */
 protected function tearDown()
 {
     $this->client = null;
     $this->jsonResponseData = null;
     $this->books = null;
     $this->reservations = null;
     parent::tearDown();
 }
예제 #6
0
 /**
  * トランザクションをロールバックする.
  */
 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;
 }
예제 #7
0
 /**
  * @link http://stackoverflow.com/questions/13537545/clear-memory-being-used-by-php
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->app['orm.em']->getConnection()->close();
     $refl = new \ReflectionObject($this);
     foreach ($refl->getProperties() as $prop) {
         if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) {
             $prop->setAccessible(true);
             $prop->setValue($this, null);
         }
     }
 }
예제 #8
0
 /**
  * {@inheritdoc}
  */
 protected function tearDown()
 {
     $this->clearTestingCache();
     parent::tearDown();
 }
 public function tearDown()
 {
     ACLProvider::purge();
     \collection::purge();
     \databox::purge();
     \caption_field::purge();
     \caption_Field_Value::purge();
     \databox_field::purge();
     \databox_status::purge();
     \thesaurus_xpath::purge();
     /**
      * Kris Wallsmith pro-tip
      * @see http://kriswallsmith.net/post/18029585104/faster-phpunit
      */
     $refl = new ReflectionObject($this);
     foreach ($refl->getProperties() as $prop) {
         if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_') && 0 !== strpos($prop->getDeclaringClass()->getName(), 'Phraseanet')) {
             $prop->setAccessible(true);
             $prop->setValue($this, null);
         }
     }
     $refl = null;
     parent::tearDown();
     //In case some executed script modify 'max_execution_time' ini var
     //Initialize set_time_limit(0) which is the default value for PHP CLI
     set_time_limit(0);
 }
 /**
  * トランザクションをロールバックする.
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->app['orm.em']->getConnection()->rollback();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->app = null;
     $this->client = null;
 }