public function tearDown() { parent::tearDown(); $this->app['orm.em']->getConnection()->close(); $this->app = null; $this->client = null; }
public function tearDown() { parent::tearDown(); foreach ($this->dataInsertUser as $dataUser) { $this->app['user.service']->destroy($dataUser['name']); } }
/** * トランザクションをロールバックする. */ public function tearDown() { parent::tearDown(); $this->app['orm.em']->getConnection()->rollback(); $this->app['orm.em']->getConnection()->close(); $this->cleanUpProperties(); }
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(); }
/** * トランザクションをロールバックする. */ 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; }
/** * @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); } } }
/** * {@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; }