Will paint the page footer if the stack of tests has unwound.
public paintMethodEnd ( string $test_name ) | ||
$test_name | string | Name of test that is ending. |
/** * 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(); } }
/** * Signals the appropriate end event on the * listener. * @param SimpleReporter $listener Target for events. * @access public */ function paintEnd(&$listener) { $listener->paintMethodEnd($this->getName()); }
function paintMethodEnd($test_name) { parent::paintMethodEnd($test_name); $this->runCount++; }
/** * @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()); } }
/** * @param string $testName */ public function paintMethodEnd($testName) { $elapsedTime = microtime(true) - $this->methodStartTime; parent::paintMethodEnd($testName); $this->xmlWriter->endTestCase($elapsedTime, $this->assertionCount); }
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); }
/** * 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(); }
function paintMethodEnd($test_name) { print $this->_getIndent(); print "</" . $this->_namespace . "test>\n"; parent::paintMethodEnd($test_name); }
/** * 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); }