当前位置: 首页>>代码示例>>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;未经允许,请勿转载。