本文整理匯總了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);
}