/** * Drop the user tables and session between tests. * * @since 2.0 */ protected function tearDown() { $config = ConfigProvider::getInstance(); $sessionProvider = $config->get('session.provider.name'); $session = SessionProviderFactory::getInstance($sessionProvider); $session->set('currentUser', null); $person = new Person(); $person->dropTable(); $rights = new Rights(); $rights->dropTable(); $rights->dropTable('Person2Rights'); }
/** * Called after the test functions are executed * this function is defined in PHPUnit_TestCase and overwritten * here. * * @since 1.0 */ protected function tearDown() { parent::tearDown(); unset($this->rel1); $person = new Person(); $person->dropTable(); $rights = new Rights(); $rights->dropTable(); $rights->dropTable('Person2Rights'); $comment = new ArticleComment(); $comment->dropTable(); $article = new Article(); $article->dropTable(); }
/** * Called after the test functions are executed * this function is defined in PHPUnit_TestCase and overwritten * here. * * @since 1.0 */ protected function tearDown() { parent::tearDown(); $person = new Person(); $person->dropTable(); $rights = new Rights(); $rights->dropTable(); $rights->dropTable('Person2Rights'); $rights->dropTable('Person2Article'); $article = new Article(); $article->dropTable(); }
/** * Called after the test functions are executed * this function is defined in PHPUnit_TestCase and overwritten * here. * * @since 1.0 */ protected function tearDown() { parent::tearDown(); unset($this->enum1); $this->person->dropTable(); $rights = new Rights(); $rights->dropTable(); $rights->dropTable('Person2Rights'); unset($this->person); }
/** * (non-PHPdoc). * * @see alpha/lib/PEAR/PHPUnit-3.2.9/PHPUnit/Framework/PHPUnit_Framework_TestCase::tearDown() * @since 1.0 */ protected function tearDown() { $config = ConfigProvider::getInstance(); $config->set('session.provider.name', 'Alpha\\Util\\Http\\Session\\SessionProviderArray'); $this->controller->abort(); $this->article->dropTable(); unset($this->article); unset($this->controller); $this->person->dropTable(); unset($this->person); $this->group->dropTable(); $this->group->dropTable('Person2Rights'); unset($this->group); $article = new Article(); $article->dropTable(); $tag = new Tag(); $tag->dropTable(); $denum = new DEnum(); $denum->dropTable(); $item = new DEnumItem(); $item->dropTable(); }