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);
 }
예제 #2
0
 /**
  * Prints the message for skipping tests.
  *
  * @param string $message    Text of skip condition.
  */
 public function paintSkip($message)
 {
     parent::paintSkip($message);
     print "Skip: {$message}\n";
 }
예제 #3
0
파일: test_case.php 프로젝트: nuckey/moodle
 /**
  *    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();
 }
 /**
  * @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);
     }
 }
예제 #5
0
 /**
  * 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";
 }
예제 #6
0
파일: xml.php 프로젝트: ngugijames/ThinkUp
 /**
  *    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";
 }
예제 #7
0
파일: xml.php 프로젝트: guicara/simpletest
 /**
  * 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";
 }
예제 #8
0
 function paintSkip($message)
 {
     parent::paintSkip($message);
     $this->_addToOutput('FORMATED', $message);
 }
 /**
  * @param string $message
  */
 public function paintSkip($message)
 {
     parent::paintSkip($message);
     $this->paintFailureOrError('Skip: ' . $message, 'error');
 }
 public function paintSkip($message)
 {
     parent::paintSkip($message);
     // not implemented
 }
예제 #11
0
 /**
  *    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();
 }
예제 #12
0
 /**
  *    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";
 }