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 17)

SimpleScorer
   |
   --SimpleReporter
      |
      --JUnitXMLReporter
Method Summary
 JUnitXMLReporter JUnitXMLReporter ()
 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)
Variables
Methods
Constructor JUnitXMLReporter (line 18)
JUnitXMLReporter JUnitXMLReporter ()
paintCaseEnd (line 65)
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 60)
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 92)
void paintException ( $exception)
  • $exception

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

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

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 26)
void paintHeader ( $test_name)
  • $test_name

Redefinition of:
SimpleReporter::paintHeader()
Paints the test document header.
paintMethodEnd (line 76)
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 69)
void paintMethodStart ( $test)
  • $test

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

Inherited Methods

Inherited From SimpleReporter

 SimpleReporter::SimpleReporter()
 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::SimpleScorer()
 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, 04 May 2008 09:21:43 -0500 by phpDocumentor 1.3.0