예제 #1
0
 /**
  * Called when a pass needs to be output.
  */
 function paintPass($message)
 {
     //(Implicitly call grandparent, as parent not implemented.)
     parent::paintPass($message);
     if ($this->showpasses) {
         $this->_paintPassFail('pass', $message);
     }
 }
예제 #2
0
 function paintPass($message)
 {
     parent::paintPass($message);
     print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     //print implode("->", $breadcrumb);
     print "&#x2192; {$message}<br />\n";
 }
예제 #3
0
 public function paintPass($message)
 {
     parent::paintPass($message);
     echo "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     echo implode("-&gt;", $breadcrumb);
     echo "-&gt;{$message}<br />\n";
 }
예제 #4
0
 public function paintPass_Classname($message)
 {
     parent::paintPass($message);
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $testsubject_classname = $breadcrumb['1'] . '-&gt;' . $breadcrumb['2'] . '()';
     // combine classname + methodname
     echo '<span class="pass">' . $testsubject_classname . '</span><br />';
 }
 function paintPass($message)
 {
     parent::paintPass($message);
     print '<span class="pass">Pass</span>: ';
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -> ", $breadcrumb);
     print " -> {$message}<br />\n";
 }
 function paintPass($message)
 {
     parent::paintPass($message);
     print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     print ' -&gt; ' . htmlspecialchars($message) . "<br />\n";
 }
예제 #7
0
 function paintPass($message)
 {
     parent::paintPass($message);
     print "<table><tr><td class=\"first\"><span class=\"pass\">Pass:</span></td><td><span class=\"pass\">";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -> ", $breadcrumb);
     $message = str_replace('replace55', "pass", $message);
     print ": {$message}</td></tr></table>\n";
 }
 function paintPass($message)
 {
     $message = str_replace(TESTCASESFOLDER, '', $message);
     parent::paintPass($message);
     print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode("->", $breadcrumb);
     print "->{$message}<br />\n";
 }
예제 #9
0
 function paintPass($message)
 {
     // print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     //  print implode("-&gt;", $breadcrumb);
     //  print "->$message<br />\n";
     //  print "<hr><br>";
     parent::paintPass($message);
     $_SESSION['passes']++;
 }
예제 #10
0
 function paintPass($message)
 {
     if (PRINTPASSES) {
         parent::paintPass($message);
         print "<span class=\"pass\">Pass</span>: ";
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print implode("-&gt;", $breadcrumb);
         print "&nbsp;->&nbsp;{$message}<br />\n";
     }
 }
예제 #11
0
 function paintPass($message)
 {
     parent::paintPass($message);
     $messageWithoutTrace = trim(substr($message, 0, strpos($message, " at [")));
     if (strlen($messageWithoutTrace) == 0) {
         // don't show empty messages (they appear if debugging is conditionally disabled)
         return;
     }
     print "<span class=\"pass\">Pass</span>: ";
     print "{$messageWithoutTrace}<br />\n";
 }
예제 #12
0
 /**
  * Display the passed tests
  *
  * @param string $message Display a custom message for the test
  */
 function paintPass($message)
 {
     parent::paintPass($message);
     if ($this->show) {
         print "<span class=\"pass\">PASS</span>: ";
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print implode("->", $breadcrumb);
         print "->{$message}<br />\n";
     }
 }
예제 #13
0
파일: nvreporter.php 프로젝트: nvoyx/nvoyx
 function paintPass($message)
 {
     parent::paintPass($message);
     if ($this->o['passes'] == 1) {
         print "<div class='box' style='margin:auto;width:95%;margin-bottom:20px;'>\n";
         print "<span class=\"pass\">Pass</span>: ";
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         $breadcrumb[count($breadcrumb) - 1] = str_replace(array('test_', '_'), array('', ' '), $breadcrumb[count($breadcrumb) - 1]);
         print '<strong>' . implode("->", $breadcrumb) . '</strong><br>';
         print "{$message}\n";
         print "</div>\n";
     }
 }
예제 #14
0
 public function paintPass($message)
 {
     parent::paintPass($message);
     print '<span class="pass">Pass</span>: ';
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(' -&gt; ', $breadcrumb);
     print ' -&gt; ' . htmlentities($message) . "<br />\n";
 }
예제 #15
0
 function paintPass($message)
 {
     parent::paintPass($message);
     if (isset($_REQUEST['show_pass'])) {
         print '<span class="pass">Pass</span>: ';
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print implode(" -&gt; ", $breadcrumb);
         print " -&gt; " . $this->_htmlEntities($message) . "<br />\n";
     }
 }
예제 #16
0
파일: AbstractTest.php 프로젝트: nexcra/cb5
 /**
  * Paint pass
  *
  * @access public
  * @param  string $message
  * @return void
  */
 public function paintPass($message)
 {
     parent::paintPass($message);
     // use /api/test/?debug to debug ;)
     if (isset($_GET['debug'])) {
         print "<span class=\"pass\">Pass</span>: ";
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print implode(" -&gt; ", $breadcrumb);
         print " -&gt; " . $this->htmlEntities($message) . "<br />\n";
     }
 }
예제 #17
0
 function paintPass($message)
 {
     parent::paintPass($message);
     print "<span class=\"pass\">Pass</span>: ";
     print " {$message}<br />\n";
 }
예제 #18
0
 function paintPass($message)
 {
     parent::paintPass($message);
 }