本文整理汇总了PHP中Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractHttpControllerTestCase::tearDown方法的具体用法?PHP AbstractHttpControllerTestCase::tearDown怎么用?PHP AbstractHttpControllerTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase
的用法示例。
在下文中一共展示了AbstractHttpControllerTestCase::tearDown方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
protected function tearDown()
{
parent::tearDown();
$tool = new SchemaTool($this->em);
$tool->dropDatabase();
unset($this->em);
}
示例2: tearDown
public function tearDown()
{
if ($this->db instanceof \MongoDB) {
$this->db->drop();
}
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
$this->sessionProgress->getManager()->getStorage()->clear('progress_tracker');
$forms = new Container('forms');
$forms->getManager()->getStorage()->clear('forms');
parent::tearDown();
}
示例4: tearDown
protected function tearDown()
{
foreach ($this->httpMocks as $mock) {
$mock->verify();
}
parent::tearDown();
M::close();
}
示例5: tearDown
/**
* @see \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::tearDown()
*/
public function tearDown()
{
if ($this->getDbCreated()) {
$this->getEntityManager()->clear();
$this->cleanDatabase();
}
unset($this->serviceManager, $this->entityManager, $this->ormExcecutor, $this->schemaTool, $this->ormPurger);
parent::tearDown();
}
示例6: testApplicationClassAndTestRestoredConsoleFlag
public function testApplicationClassAndTestRestoredConsoleFlag()
{
$this->assertTrue(Console::isConsole());
$this->getApplication();
$this->assertFalse(Console::isConsole());
$this->tearDown();
$this->assertTrue(Console::isConsole());
Console::overrideIsConsole(false);
parent::setUp();
$this->assertFalse(Console::isConsole());
$this->getApplication();
$this->assertFalse(Console::isConsole());
parent::tearDown();
$this->assertFalse(Console::isConsole());
}
示例7: tearDown
/**
* Cleans up the environment after running a test.
*/
protected function tearDown()
{
// TODO Auto-generated IndexControllerTest::tearDown()
$this->indexController = null;
parent::tearDown();
}
示例8: tearDown
public function tearDown()
{
unset($_SERVER['HTTP_X_REQUEST_ID']);
return parent::tearDown();
}
示例9: tearDown
/**
* Drop temporary db & restore params
*/
public function tearDown()
{
parent::tearDown();
$sm = $this->getApplication()->getServiceManager();
\Zork\ServiceManager\ServiceManager::unregisterServices($sm);
$sm = null;
$config = $this->getApplicationConfig();
$this->reset();
$this->gc();
if (!empty($config['db']) && $this->originalDbName) {
$config['db']['dbname'] = $this->originalDbName;
$db = new DbAdapter($config['db']);
$platform = $db->getPlatform();
$db->query(sprintf('DROP DATABASE %s', $platform->quoteIdentifier($this->temporaryDbName)), DbAdapter::QUERY_MODE_EXECUTE);
$platform = null;
$db = null;
$this->gc();
}
chdir($this->orginalCwd);
}
示例10: tearDown
protected function tearDown()
{
parent::tearDown();
}
示例11: testApplicationClassAndTestRestoredConsoleFlag
public function testApplicationClassAndTestRestoredConsoleFlag()
{
$this->assertTrue(Console::isConsole(), '1. Console::isConsole returned false in initial test');
$this->getApplication();
$this->assertFalse(Console::isConsole(), '2. Console::isConsole returned true after retrieving application');
$this->tearDown();
$this->assertTrue(Console::isConsole(), '3. Console::isConsole returned false after tearDown');
Console::overrideIsConsole(false);
parent::setUp();
$this->assertFalse(Console::isConsole(), '4. Console::isConsole returned true after parent::setUp');
$this->getApplication();
$this->assertFalse(Console::isConsole(), '5. Console::isConsole returned true after retrieving application');
parent::tearDown();
$this->assertFalse(Console::isConsole(), '6. Console.isConsole returned true after parent::tearDown');
}
示例12: tearDown
/**
* Cleans up the environment after running a test.
*/
protected function tearDown()
{
// TODO Auto-generated AccountControllerTest::tearDown()
$this->accountController = null;
parent::tearDown();
}
示例13: tearDown
protected function tearDown()
{
parent::tearDown();
$this->dropDatabase();
}