本文整理汇总了PHP中SimpleReporter::paintMethodEnd方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleReporter::paintMethodEnd方法的具体用法?PHP SimpleReporter::paintMethodEnd怎么用?PHP SimpleReporter::paintMethodEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleReporter
的用法示例。
在下文中一共展示了SimpleReporter::paintMethodEnd方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: paintMethodEnd
/**
* Paints the end of a test method being run. This is used
* to pause the collection of code coverage if its being used.
*
* @param string $method The name of the method being run.
* @return void
*/
function paintMethodEnd($method)
{
parent::paintMethodEnd($method);
if (!empty($this->params['codeCoverage'])) {
CodeCoverageManager::stop();
}
}
示例2: paintEnd
/**
* Signals the appropriate end event on the
* listener.
* @param SimpleReporter $listener Target for events.
* @access public
*/
function paintEnd(&$listener)
{
$listener->paintMethodEnd($this->getName());
}
示例3: paintMethodEnd
function paintMethodEnd($test_name)
{
parent::paintMethodEnd($test_name);
$this->runCount++;
}
示例4: paintMethodEnd
/**
* @param string $testName
*/
public function paintMethodEnd($testName)
{
$elapsedTime = microtime(true) - $this->methodStartTime;
parent::paintMethodEnd($testName);
$this->junitXMLWriter->endTestCase($elapsedTime, $this->assertionCount);
$this->methodStarted = false;
if ($this->caseIsArtificial) {
$this->paintCaseEnd(\SimpleTest::getContext()->getTest()->getLabel());
}
}
示例5: paintMethodEnd
/**
* @param string $testName
*/
public function paintMethodEnd($testName)
{
$elapsedTime = microtime(true) - $this->methodStartTime;
parent::paintMethodEnd($testName);
$this->xmlWriter->endTestCase($elapsedTime, $this->assertionCount);
}
示例6: paintMethodEnd
public function paintMethodEnd($method)
{
$elapsed = microtime(true) - $this->start_time;
$memory = memory_get_usage() - $this->start_memory;
$buffer = ob_get_clean();
$test_case = array_pop($this->results);
$a = $this->method_status;
$a['buffer'] = $buffer;
$a['time'] = $elapsed;
$a['memory'] = $memory;
$test_case['methods'][$method] = $a;
array_push($this->results, $test_case);
parent::paintMethodEnd($method);
}
示例7: paintMethodEnd
/**
* Paints the end of a test method. Will paint the page
* footer if the stack of tests has unwound.
* @param string $test_name Name of test that is ending.
* @access public
*/
public function paintMethodEnd($test_name)
{
parent::paintMethodEnd($test_name);
//echo '<em>Test: "' . $test_name . '" finished.</em><br />';
flush();
}
示例8: paintMethodEnd
function paintMethodEnd($test_name)
{
print $this->_getIndent();
print "</" . $this->_namespace . "test>\n";
parent::paintMethodEnd($test_name);
}
示例9: paintMethodEnd
/**
* acceptor for end of method node
*/
function paintMethodEnd($message)
{
parent::paintMethodEnd($message);
$node = $this->stack->pop();
$current = $this->stack->peek();
if ($node->isFailed()) {
$current->fail();
}
$current->putChild($node);
}