PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Util_Log_XML

Source Location: /PHPUnit2-3.0.0alpha11/Util/Log/XML.php

Class Overview

PHPUnit2_Util_Printer
   |
   --PHPUnit2_Util_Log_XML

A TestListener that generates an XML-based logfile of the test execution.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods


Class Details

[line 69]
A TestListener that generates an XML-based logfile of the test execution.


[ Top ]


Method Detail

__construct (Constructor)   [line 137]

PHPUnit2_Util_Log_XML __construct( [mixed $out = NULL])

Constructor.
  • Access: public

Overrides PHPUnit2_Util_Printer::__construct() (Constructor.)

Parameters:

mixed   $out   — 

[ Top ]

addError   [line 169]

void addError( PHPUnit2_Framework_Test $test, Exception $e)

An error occurred.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

addFailure   [line 187]

void addFailure( PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)

A failure occurred.
  • Access: public

Parameters:


[ Top ]

addIncompleteTest   [line 205]

void addIncompleteTest( PHPUnit2_Framework_Test $test, Exception $e)

Incomplete test.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

addSkippedTest   [line 224]

void addSkippedTest( PHPUnit2_Framework_Test $test, Exception $e)

Skipped test.
  • Since: Method available since Release 3.0.0
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

endTest   [line 331]

void endTest( PHPUnit2_Framework_Test $test)

A test ended.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

endTestSuite   [line 288]

void endTestSuite( PHPUnit2_Framework_TestSuite $suite)

A testsuite ended.
  • Since: Method available since Release 2.2.0
  • Access: public

Parameters:

PHPUnit2_Framework_TestSuite   $suite   — 

[ Top ]

flush   [line 153]

void flush( )

Flush buffer and close output.
  • Access: public

Overrides PHPUnit2_Util_Printer::flush() (Flush buffer and close output.)
[ Top ]

getXML   [line 348]

string getXML( )

Returns the XML as a string.
  • Since: Method available since Release 2.2.0
  • Access: public

[ Top ]

setWriteDocument   [line 364]

string setWriteDocument( $flag)

Enables or disables the writing of the document in flush().

This is a "hack" needed for the integration of PHPUnit with Phing.

  • Since: Method available since Release 2.2.0
  • Access: public

Parameters:

   $flag   — 

[ Top ]

startTest   [line 311]

void startTest( PHPUnit2_Framework_Test $test)

A test started.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

startTestSuite   [line 242]

void startTestSuite( PHPUnit2_Framework_TestSuite $suite)

A testsuite started.
  • Since: Method available since Release 2.2.0
  • Access: public

Parameters:

PHPUnit2_Framework_TestSuite   $suite   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.