當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SimpleReporter::paintMethodEnd方法代碼示例

本文整理匯總了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();
     }
 }
開發者ID:vinicius-ianni,項目名稱:PHPMyScrum,代碼行數:14,代碼來源:cake_base_reporter.php

示例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());
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:10,代碼來源:xml.php

示例3: paintMethodEnd

 function paintMethodEnd($test_name)
 {
     parent::paintMethodEnd($test_name);
     $this->runCount++;
 }
開發者ID:altesien,項目名稱:FinalProject,代碼行數:5,代碼來源:SimpleTestResultFormatter.php

示例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());
     }
 }
開發者ID:rsky,項目名稱:stagehand-testrunner,代碼行數:13,代碼來源:JUnitXMLReporter.php

示例5: paintMethodEnd

 /**
  * @param string $testName
  */
 public function paintMethodEnd($testName)
 {
     $elapsedTime = microtime(true) - $this->methodStartTime;
     parent::paintMethodEnd($testName);
     $this->xmlWriter->endTestCase($elapsedTime, $this->assertionCount);
 }
開發者ID:kumatch,項目名稱:stagehand-testrunner,代碼行數:9,代碼來源:JUnitXMLReporter.php

示例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);
 }
開發者ID:lubosdz,項目名稱:simpletest-visual-gui,代碼行數:14,代碼來源:SimpleHtmlReporter.php

示例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();
 }
開發者ID:ivantcholakov,項目名稱:Bonfire,代碼行數:12,代碼來源:my_reporter.php

示例8: paintMethodEnd

 function paintMethodEnd($test_name)
 {
     print $this->_getIndent();
     print "</" . $this->_namespace . "test>\n";
     parent::paintMethodEnd($test_name);
 }
開發者ID:BackupTheBerlios,項目名稱:phpbase-svn,代碼行數:6,代碼來源:xml.php

示例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);
 }
開發者ID:GerHobbelt,項目名稱:simpletest,代碼行數:13,代碼來源:treemap_recorder.php


注:本文中的SimpleReporter::paintMethodEnd方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。