Running %s 

Please wait...

 

visible tab content
    Fail     Tree  
Click on a failed test case method in the tree tab to view output here.
'.$this->outputScript("xHide('wait');"); $colour = ($this->getFailCount() + $this->getExceptionCount() > 0 ? "red" : "green"); $content = "

$test_name

\n"; $content .= "
"; $content .= $this->getTestCaseProgress() . "/" . $this->getTestCaseCount(); $content .= " test cases complete:\n"; $content .= "" . $this->getPassCount() . " passes, "; $content .= "" . $this->getFailCount() . " fails and "; $content .= "" . $this->getExceptionCount() . " exceptions."; $content .= "
\n"; echo $this->outputScript('foo = "'.$this->toJsString($content).'";'."\nset_div_content('run', foo);"); echo "\n\n\n"; } /** * Paints formatted text such as dumped variables. * @param string $message Text to show. * @access public */ function paintFormattedMessage($message) { echo "add_log(\"".$this->toJsString("
$message
", true)."\");\n"; } /** * Paints the start of a group test. Will also paint * the page header and footer if this is the * first test. Will stash the size if the first * start. * @param string $test_name Name of test that is starting. * @param integer $size Number of test cases starting. * @access public */ function paintGroupStart($test_name, $size) { Parent::paintGroupStart($test_name, $size); echo "add_group('$test_name');\n"; } /** * Paints the start of a test case. Will also paint * the page header and footer if this is the * first test. Will stash the size if the first * start. * @param string $test_name Name of test that is starting. * @access public */ function paintCaseStart($test_name) { Parent::paintCaseStart($test_name); echo "add_case('$test_name');\n"; } /** * Paints the start of a test method. * @param string $test_name Name of test that is starting. * @access public */ function paintMethodStart($test_name) { Parent::paintMethodStart($test_name); echo "add_method('$test_name');\n"; } /** * Paints the end of a test method. * @param string $test_name Name of test that is ending. * @access public */ function paintMethodEnd($test_name) { Parent::paintMethodEnd($test_name); } /** * Paints the test failure with a breadcrumbs * trail of the nesting test suites below the * top level test. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { parent::paintFail($message); $msg = "Fail: "; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $msg .= implode("->", $breadcrumb); $msg .= "->" . htmlentities($message) . "
"; echo "add_fail('$msg');\n"; } /** * Paints a PHP error or exception. * @param string $message Message is ignored. * @access public * @abstract */ function paintException($message) { parent::paintException($message); $msg = "Exception: "; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $msg .= implode("->", $breadcrumb); $msg .= "->" . htmlentities($message) . "
"; echo "add_fail('$msg');\n"; } /** * Returns the script passed in wrapped in script tags. * * @param string $script the script to output * @return string the script wrapped with script tags */ function outputScript($script) { return "\n"; } /** * Transform a string into a format acceptable to JavaScript * @param string $str the string to transform * @return string */ function toJsString($str, $preserveCr=false) { $cr = ($preserveCr) ? '\\n' : ''; return str_replace( array('"' ,"\n") ,array('\"' ,"$cr\"\n\t+\"") ,$str ); } } ?>