Class JUnitXMLReporter

Description

Reporter which outputs test results in a format compatible with JUnit / Maven XML output. Can be used for integrating test suite with continuous integration servers such as Atlassian Bamboo.

Located in /extensions/junit_xml_reporter.php (line 22)

SimpleScorer
   |
   --SimpleReporter
      |
      --JUnitXMLReporter
Method Summary
 JUnitXMLReporter __construct ()
 void paintCaseEnd ( $case)
 void paintCaseStart ( $case)
 void paintException ( $exception)
 void paintFail ( $message)
 void paintFooter (string $test_name)
 void paintHeader ( $test_name)
 void paintMethodEnd ( $test)
 void paintMethodStart ( $test)
 void terminateAbnormally ( $message)
Methods
Constructor __construct (line 23)
JUnitXMLReporter __construct ()

Redefinition of:
SimpleReporter::__construct()
Starts the display with no results in.
paintCaseEnd (line 69)
void paintCaseEnd ( $case)
  • $case

Redefinition of:
SimpleReporter::paintCaseEnd()
Paints the end of a test case. Will paint the page footer if the stack of tests has unwound.
paintCaseStart (line 64)
void paintCaseStart ( $case)
  • $case

Redefinition of:
SimpleReporter::paintCaseStart()
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.
paintException (line 96)
void paintException ( $exception)
  • $exception

Redefinition of:
SimpleScorer::paintException()
Deals with PHP 5 throwing an exception.
paintFail (line 89)
void paintFail ( $message)
  • $message

Redefinition of:
SimpleScorer::paintFail()
Increments the fail count.
paintFooter (line 47)

Paints the end of the test with a summary of the passes and failures.

  • access: public
void paintFooter (string $test_name)
  • string $test_name: Name class of test.

Redefinition of:
SimpleReporter::paintFooter()
Paints the test document footer.
paintHeader (line 30)
void paintHeader ( $test_name)
  • $test_name

Redefinition of:
SimpleReporter::paintHeader()
Paints the test document header.
paintMethodEnd (line 80)
void paintMethodEnd ( $test)
  • $test

Redefinition of:
SimpleReporter::paintMethodEnd()
Paints the end of a test method. Will paint the page footer if the stack of tests has unwound.
paintMethodStart (line 73)
void paintMethodStart ( $test)
  • $test

Redefinition of:
SimpleReporter::paintMethodStart()
Paints the start of a test method.
terminateAbnormally (line 103)
void terminateAbnormally ( $message)
  • $message

Inherited Methods

Inherited From SimpleReporter

 SimpleReporter::__construct()
 SimpleReporter::getDumper()
 SimpleReporter::getTestCaseCount()
 SimpleReporter::getTestCaseProgress()
 SimpleReporter::getTestList()
 SimpleReporter::inCli()
 SimpleReporter::paintCaseEnd()
 SimpleReporter::paintCaseStart()
 SimpleReporter::paintFooter()
 SimpleReporter::paintGroupEnd()
 SimpleReporter::paintGroupStart()
 SimpleReporter::paintHeader()
 SimpleReporter::paintMethodEnd()
 SimpleReporter::paintMethodStart()

Inherited From SimpleScorer

 SimpleScorer::__construct()
 SimpleScorer::createInvoker()
 SimpleScorer::getExceptionCount()
 SimpleScorer::getFailCount()
 SimpleScorer::getPassCount()
 SimpleScorer::getStatus()
 SimpleScorer::makeDry()
 SimpleScorer::paintCaseEnd()
 SimpleScorer::paintCaseStart()
 SimpleScorer::paintError()
 SimpleScorer::paintException()
 SimpleScorer::paintFail()
 SimpleScorer::paintFormattedMessage()
 SimpleScorer::paintGroupEnd()
 SimpleScorer::paintGroupStart()
 SimpleScorer::paintMessage()
 SimpleScorer::paintMethodEnd()
 SimpleScorer::paintMethodStart()
 SimpleScorer::paintPass()
 SimpleScorer::paintSignal()
 SimpleScorer::paintSkip()
 SimpleScorer::shouldInvoke()

Documentation generated on Sun, 31 Oct 2010 16:31:40 -0500 by phpDocumentor 1.4.3