本文整理汇总了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();
}
示例2: assertPostConditions
/**
* Announces the end of a test.
*
* @return void
*/
protected function assertPostConditions()
{
parent::assertPostConditions();
$this->endTest($this->getName());
}
示例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);
}
}
示例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();
}
示例5: assertPostConditions
/**
* Assert post conditions.
*/
protected function assertPostConditions()
{
$this->_failing = false;
parent::assertPostConditions();
}