本文整理汇总了PHP中UnitTestCase::after方法的典型用法代码示例。如果您正苦于以下问题:PHP UnitTestCase::after方法的具体用法?PHP UnitTestCase::after怎么用?PHP UnitTestCase::after使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnitTestCase
的用法示例。
在下文中一共展示了UnitTestCase::after方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: after
/**
* Decorates SimpleTest's implementation to auto-validate mock objects.
*/
public function after($method)
{
try {
$this->_mockery()->assertIsSatisfied();
} catch (Yay_NotSatisfiedException $e) {
$this->fail($e->getMessage());
}
$this->_mockery = null;
return parent::after($method);
}
示例2: after
/**
* Announces the end of a test.
*
* @param string $method Test method just finished.
* @return void
* @access public
*/
function after($method)
{
$isTestMethod = !in_array(strtolower($method), array('start', 'end'));
if (isset($this->_fixtures) && isset($this->db) && $isTestMethod) {
foreach ($this->_fixtures as $fixture) {
$fixture->truncate($this->db);
}
$this->__truncated = true;
} else {
$this->__truncated = false;
}
if (!in_array(strtolower($method), $this->methods)) {
$this->endTest($method);
}
$this->_should_skip = false;
parent::after($method);
}
示例3: after
/**
* Announces the end of a test.
*
* @param string $method Test method just finished.
*
* @access public
*/
function after($method)
{
if (isset($this->_fixtures) && isset($this->db) && !in_array(low($method), array('start', 'end'))) {
foreach ($this->_fixtures as $fixture) {
$query = $fixture->truncate();
if (isset($query) && $query !== false) {
$this->db->_execute($query);
}
}
}
if (!in_array(low($method), $this->methods)) {
$this->endTest($method);
}
parent::after($method);
}
示例4: after
/**
* Announces the end of the test. Includes private clean up.
* @param string $method Test method just finished.
* @access public
*/
function after($method)
{
parent::after($this->cleanCamelCase($method));
}
示例5: after
/**
* Announces the end of the test. Includes private clean up.
* @param string $method Test method just finished.
* @access public
*/
function after($method)
{
$this->unsetBrowser();
parent::after($method);
}
示例6: after
/**
* Announces the end of a test.
*
* @param string $method Test method just finished.
*
* @access public
*/
function after($method)
{
if (isset($this->_fixtures) && isset($this->db) && !in_array(low($method), array('start', 'end'))) {
foreach ($this->_fixtures as $fixture) {
$this->db->truncate($fixture->table);
}
$this->__truncated = true;
} else {
$this->__truncated = false;
}
if (!in_array(low($method), $this->methods)) {
$this->endTest($method);
}
parent::after($method);
}