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


PHP PHPUnit_Framework_TestCase::assertPostConditions方法代码示例

本文整理汇总了PHP中PHPUnit_Framework_TestCase::assertPostConditions方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_TestCase::assertPostConditions方法的具体用法?PHP PHPUnit_Framework_TestCase::assertPostConditions怎么用?PHP PHPUnit_Framework_TestCase::assertPostConditions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHPUnit_Framework_TestCase的用法示例。


在下文中一共展示了PHPUnit_Framework_TestCase::assertPostConditions方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: assertPostConditions

 protected function assertPostConditions()
 {
     $this->addMockeryExpectationsToAssertionCount();
     $this->closeMockery();
     parent::assertPostConditions();
 }
开发者ID:mockery,项目名称:mockery,代码行数:6,代码来源:MockeryTestCase.php

示例2: assertPostConditions

 /**
  * Announces the end of a test.
  *
  * @return void
  */
 protected function assertPostConditions()
 {
     parent::assertPostConditions();
     $this->endTest($this->getName());
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:10,代码来源:CakeTestCase.php

示例3: assertPostConditions

 /**
  * Check for unexpected errors after each test.
  *
  * @since 0.3.0
  */
 public function assertPostConditions()
 {
     parent::assertPostConditions();
     self::check_for_unexpected_errors();
     if (!empty(self::$debugs)) {
         var_dump(self::$debugs);
     }
 }
开发者ID:jdgrimes,项目名称:wp-l10n-validator,代码行数:13,代码来源:class-wp-l10n-validator-unittestcase.php

示例4: assertPostConditions

 /**
  * {@inheritdoc}
  */
 protected function assertPostConditions()
 {
     // Execute registered Drupal shutdown functions prior to tearing down.
     // @see _drupal_shutdown_function()
     $callbacks =& drupal_register_shutdown_function();
     while ($callback = array_shift($callbacks)) {
         call_user_func_array($callback['callback'], $callback['arguments']);
     }
     // Shut down the kernel (if bootKernel() was called).
     // @see \Drupal\system\Tests\DrupalKernel\DrupalKernelTest
     if ($this->container) {
         $this->container->get('kernel')->shutdown();
     }
     // Fail in case any (new) shutdown functions exist.
     $this->assertCount(0, drupal_register_shutdown_function(), 'Unexpected Drupal shutdown callbacks exist after running shutdown functions.');
     parent::assertPostConditions();
 }
开发者ID:aWEBoLabs,项目名称:taxi,代码行数:20,代码来源:KernelTestBase.php

示例5: assertPostConditions

 /**
  * Assert post conditions.
  */
 protected function assertPostConditions()
 {
     $this->_failing = false;
     parent::assertPostConditions();
 }
开发者ID:passbolt,项目名称:passbolt_selenium,代码行数:8,代码来源:WebDriverTestCase.php


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