Sets up indentation and namespace.
XmlReporter
XmlReporter
([string $namespace = false], [string $indent = ' '])
-
string
$namespace: Namespace to add to each tag.
-
string
$indent: Indenting to add on each nesting.
Paints the end of a test case.
void
paintCaseEnd
(string $test_name)
-
string
$test_name: Name of test that is ending.
Redefinition of:
- SimpleReporter::paintCaseEnd()
- Paints the end of a test case. Will paint the page footer if the stack of tests has unwound.
Paints the start of a test case.
void
paintCaseStart
(string $test_name)
-
string
$test_name: Name of test that is starting.
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.
Paints error as XML.
void
paintError
(string $message)
-
string
$message: Message to encode.
Redefinition of:
- SimpleScorer::paintError()
- Deals with PHP 4 throwing an error.
Paints exception as XML.
void
paintException
(Exception $exception)
-
Exception
$exception: Exception to encode.
Redefinition of:
- SimpleScorer::paintException()
- Deals with PHP 5 throwing an exception.
Paints failure as XML.
void
paintFail
(string $message)
-
string
$message: Message to encode.
Redefinition of:
- SimpleScorer::paintFail()
- Increments the fail count.
Paints the test document footer.
void
paintFooter
(string $test_name)
-
string
$test_name: The top level test.
Redefinition of:
- SimpleReporter::paintFooter()
- Paints the test document footer.
Paints a formatted ASCII message such as a variable dump.
void
paintFormattedMessage
(string $message)
-
string
$message: Text to display.
Redefinition of:
- SimpleScorer::paintFormattedMessage()
- Paints a formatted ASCII message such as a variable dump.
Paints the end of a group test.
void
paintGroupEnd
(string $test_name)
-
string
$test_name: Name of test that is ending.
Redefinition of:
- SimpleReporter::paintGroupEnd()
- Paints the end of a group test. Will paint the page footer if the stack of tests has unwound.
Paints the start of a group test.
void
paintGroupStart
(string $test_name, integer $size)
-
string
$test_name: Name of test that is starting.
-
integer
$size: Number of test cases starting.
Redefinition of:
- SimpleReporter::paintGroupStart()
- 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.
Paints the test document header.
void
paintHeader
(string $test_name)
-
string
$test_name: First test top level to start.
Redefinition of:
- SimpleReporter::paintHeader()
- Paints the test document header.
Paints a simple supplementary message.
void
paintMessage
(string $message)
-
string
$message: Text to display.
Redefinition of:
- SimpleScorer::paintMessage()
- Paints a simple supplementary message.
Paints the end of a test method.
void
paintMethodEnd
(string $test_name, integer $progress)
-
string
$test_name: Name of test that is ending.
-
integer
$progress: Number of test cases ending.
Redefinition of:
- SimpleReporter::paintMethodEnd()
- Paints the end of a test method. Will paint the page footer if the stack of tests has unwound.
Paints the start of a test method.
void
paintMethodStart
(string $test_name)
-
string
$test_name: Name of test that is starting.
Redefinition of:
- SimpleReporter::paintMethodStart()
- Paints the start of a test method.
Paints pass as XML.
void
paintPass
(string $message)
-
string
$message: Message to encode.
Redefinition of:
- SimpleScorer::paintPass()
- Increments the pass count.
Serialises the event object.
void
paintSignal
(string $type, mixed $payload)
-
string
$type: Event type as text.
-
mixed
$payload: Message or object.
Redefinition of:
- SimpleScorer::paintSignal()
- By default just ignores user generated events.
Paints the skipping message and tag.
void
paintSkip
(string $message)
-
string
$message: Text to display in skip tag.
Redefinition of:
- SimpleScorer::paintSkip()
- Prints the message for skipping tests.
Converts character string to parsed XML entities string.
string
toParsedXml
(string $text)
-
string
$text: text Unparsed character data.
Calculates the pretty printing indent level from the current level of nesting.
string
_getIndent
(integer $offset)
-
integer
$offset: Extra indenting level.
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()