Exemplo n.º 1
0
 /**
  *    Paints the test failure with a breadcrumbs
  *    trail of the nesting test suites below the
  *    top level test.
  *    @param $message        Failure message displayed in
  *                           the context of the other tests.
  */
 function paintFail($message)
 {
     parent::paintFail($message);
     print "<span class=\"fail\">Fail</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode("-&gt;", $breadcrumb);
     print "-&gt;{$message}<br />\n";
 }
Exemplo n.º 2
0
 /**
  *    Paints the test failure with a breadcrumbs
  *    trail of the nesting test suites below the
  *    top level test.
  *    @param $message        Failure message displayed in
  *                           the context of the other tests.
  */
 function paintFail($message)
 {
     TestDisplay::paintFail($message);
     print "<div align=\"left\"><span class=\"fail\">Fail</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode("-&gt;", $breadcrumb);
     print "-&gt;<span class=\"message\"><pre>{$message}</pre></span></div>\n";
 }
Exemplo n.º 3
0
 /**
  * Paint exception faildetail to STDERR.
  */
 function paintException($message)
 {
     parent::paintException($message);
     fwrite(STDERR, 'EXCEPTION' . $this->faildetail_separator . $this->_paintTestFailDetail($message));
 }