当前位置: 首页>>代码示例>>PHP>>正文


PHP SimpleReporter::paintSkip方法代码示例

本文整理汇总了PHP中SimpleReporter::paintSkip方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleReporter::paintSkip方法的具体用法?PHP SimpleReporter::paintSkip怎么用?PHP SimpleReporter::paintSkip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SimpleReporter的用法示例。


在下文中一共展示了SimpleReporter::paintSkip方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: paintSkip

 function paintSkip($message)
 {
     parent::paintSkip($message);
     $str = "<span class=\"pass\">Skipped</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $str .= implode(" -&gt; ", $breadcrumb);
     $str .= " -&gt; " . $this->_htmlEntities($message) . "<br />\n";
     $this->_response->body->append('MAIN', $str);
 }
开发者ID:jelix,项目名称:simpletest-module,代码行数:10,代码来源:jhtmlrespreporter.class.php

示例2: paintSkip

 /**
  * Prints the message for skipping tests.
  *
  * @param string $message    Text of skip condition.
  */
 public function paintSkip($message)
 {
     parent::paintSkip($message);
     print "Skip: {$message}\n";
 }
开发者ID:guicara,项目名称:simpletest,代码行数:10,代码来源:reporter.php

示例3: run

 /**
  *    Invokes run() on all of the held test cases, instantiating
  *    them if necessary.
  *    @param SimpleReporter $reporter    Current test reporter.
  *    @access public
  */
 function run(&$reporter) {
     $reporter->paintGroupStart($this->getLabel(), $this->getSize());
     for ($i = 0, $count = count($this->_test_cases); $i < $count; $i++) {
         if (is_string($this->_test_cases[$i])) {
             $class = $this->_test_cases[$i];
             // moodle hack start - need to do this before the constructor call, because of FakeDBUnitTestCase.
             global $CFG;
             if (is_subclass_of($class, 'FakeDBUnitTestCase')) {
                 // Do not execute this test because the test tables system no longer works, reporting it as exception
                 $reporter->paintError("Unit test \"{$class}\" of type FakeDBUnitTestCase no longer supported. Must be migrated to UnitTestCaseUsingDatabase.");
                 continue;
             }
             if (is_subclass_of($class, 'UnitTestCaseUsingDatabase') && empty($CFG->unittestprefix)) {
                 // Do not execute this test because $CFG->unittestprefix is not set, but it will be required.
                 $reporter->paintSkip("Unit test \"{$class}\" of type UnitTestCaseUsingDatabase skipped. Must define different, non-conflicting \$CFG->unittestprefix to be runnable.");
                 continue;
             }
             // moodle hack end
             $test = new $class();
             $test->run($reporter);
             unset($test);
         } else {
             $this->_test_cases[$i]->run($reporter);
         }
     }
     $reporter->paintGroupEnd($this->getLabel());
     return $reporter->getStatus();
 }
开发者ID:nuckey,项目名称:moodle,代码行数:34,代码来源:test_case.php

示例4: paintSkip

 /**
  * @param string $message
  */
 public function paintSkip($message)
 {
     parent::paintSkip($message);
     if (preg_match('!^(.*) at \\[(.+) line (\\d+)]$!', $message, $matches)) {
         $this->writeError($matches[1], null, $matches[2], $matches[3], $matches[1]);
     } else {
         $this->writeError($message);
     }
 }
开发者ID:rsky,项目名称:stagehand-testrunner,代码行数:12,代码来源:JUnitXMLReporter.php

示例5: paintSkip

 /**
  * Prints the message for skipping tests.
  * @param string $message    Text of skip condition.
  * @access public
  */
 function paintSkip($message)
 {
     parent::paintSkip($message);
     echo "<li class='skipped'>\n";
     echo "<span>Skipped</span> ";
     echo $this->_htmlEntities($message);
     echo "</li>\n";
 }
开发者ID:codegooglecom,项目名称:ypanel,代码行数:13,代码来源:cake_reporter.php

示例6: paintSkip

 /**
  *    Paints the skipping message and tag.
  *    @param string $message        Text to display in skip tag.
  *    @access public
  */
 function paintSkip($message)
 {
     parent::paintSkip($message);
     print $this->getIndent(1);
     print "<" . $this->namespace . "skip>";
     print $this->toParsedXml($message);
     print "</" . $this->namespace . "skip>\n";
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:13,代码来源:xml.php

示例7: paintSkip

 /**
  * Paints the skipping message and tag.
  *
  * @param string $message        Text to display in skip tag.
  */
 public function paintSkip($message)
 {
     parent::paintSkip($message);
     print $this->getIndent(1);
     print '<' . $this->namespace . 'skip>';
     print $this->toParsedXml($message);
     print '</' . $this->namespace . "skip>\n";
 }
开发者ID:guicara,项目名称:simpletest,代码行数:13,代码来源:xml.php

示例8: paintSkip

 function paintSkip($message)
 {
     parent::paintSkip($message);
     $this->_addToOutput('FORMATED', $message);
 }
开发者ID:vasiatka,项目名称:sitemap,代码行数:5,代码来源:common.inc.php

示例9: paintSkip

 /**
  * @param string $message
  */
 public function paintSkip($message)
 {
     parent::paintSkip($message);
     $this->paintFailureOrError('Skip: ' . $message, 'error');
 }
开发者ID:kumatch,项目名称:stagehand-testrunner,代码行数:8,代码来源:JUnitXMLReporter.php

示例10: paintSkip

 public function paintSkip($message)
 {
     parent::paintSkip($message);
     // not implemented
 }
开发者ID:lubosdz,项目名称:simpletest-visual-gui,代码行数:5,代码来源:SimpleHtmlReporter.php

示例11: paintSkip

 /**
  *    Prints the message for skipping tests.
  *    @param string $message    Text of skip condition.
  *    @access public
  */
 function paintSkip($message)
 {
     parent::paintSkip($message);
     print "<span class=\"pass\">Skipped</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     print " -&gt; " . $this->_htmlEntities($message) . "<br />\n";
     flush();
 }
开发者ID:ivantcholakov,项目名称:Bonfire,代码行数:15,代码来源:my_reporter.php

示例12: paintSkip

 /**
  *    Prints the message for skipping tests.
  *    @param string $message    Text of skip condition.
  *    @access public
  */
 function paintSkip($message) {
     parent::paintSkip($message);
     print "Skip: $message\n";
 }
开发者ID:eltonsarmento,项目名称:CursosIAG,代码行数:9,代码来源:reporter.php


注:本文中的SimpleReporter::paintSkip方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。