当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractHttpControllerTestCase::tearDown方法代码示例

本文整理汇总了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);
 }
开发者ID:dotuancd,项目名称:secretary,代码行数:7,代码来源:AuthController.php

示例2: tearDown

 public function tearDown()
 {
     if ($this->db instanceof \MongoDB) {
         $this->db->drop();
     }
     parent::tearDown();
 }
开发者ID:alapini,项目名称:apigility-3hr-tutorial,代码行数:7,代码来源:AuthControllerWithMongoAdapterTest.php

示例3: tearDown

 public function tearDown()
 {
     $this->sessionProgress->getManager()->getStorage()->clear('progress_tracker');
     $forms = new Container('forms');
     $forms->getManager()->getStorage()->clear('forms');
     parent::tearDown();
 }
开发者ID:zfury,项目名称:cmf,代码行数:7,代码来源:IndexControllerTest.php

示例4: tearDown

 protected function tearDown()
 {
     foreach ($this->httpMocks as $mock) {
         $mock->verify();
     }
     parent::tearDown();
     M::close();
 }
开发者ID:ministryofjustice,项目名称:ZendRestModule,代码行数:8,代码来源:AbstractTestCase.php

示例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();
 }
开发者ID:zf2-boiler-app,项目名称:app-test,代码行数:12,代码来源:AbstractHttpControllerTestCase.php

示例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());
    }
开发者ID:benivaldo,项目名称:zf2-na-pratica,代码行数:19,代码来源:AbstractControllerTestCaseTest.php

示例7: tearDown

 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated IndexControllerTest::tearDown()
     $this->indexController = null;
     parent::tearDown();
 }
开发者ID:arstropica,项目名称:zf-tenstreet,代码行数:9,代码来源:IndexControllerTest.php

示例8: tearDown

 public function tearDown()
 {
     unset($_SERVER['HTTP_X_REQUEST_ID']);
     return parent::tearDown();
 }
开发者ID:rstgroup,项目名称:request-id-module,代码行数:5,代码来源:RequestIdIntegrationTest.php

示例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);
 }
开发者ID:gridguyz,项目名称:zork,代码行数:23,代码来源:AbstractHttpControllerTestCase.php

示例10: tearDown

 protected function tearDown()
 {
     parent::tearDown();
 }
开发者ID:argentinaluiz,项目名称:js_zf2_library,代码行数:4,代码来源:JSTestControllerCase.php

示例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');
 }
开发者ID:pnaq57,项目名称:zf2demo,代码行数:15,代码来源:AbstractControllerTestCaseTest.php

示例12: tearDown

 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated AccountControllerTest::tearDown()
     $this->accountController = null;
     parent::tearDown();
 }
开发者ID:arstropica,项目名称:zf2-dashboard,代码行数:9,代码来源:AccountControllerTest.php

示例13: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->dropDatabase();
 }
开发者ID:michelcandido,项目名称:zf2-doctrine-tests,代码行数:5,代码来源:ControllerTestCase.php


注:本文中的Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。