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

Class: PHPUnit2_Util_Log_XML

Source Location: /PHPUnit2-2.3.0/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-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

__construct (Constructor)   [line 115]

PHPUnit2_Util_Log_XML __construct( [mixed $out = NULL])

Constructor.
  • Access: public

Overrides PHPUnit2_Util_Printer::__construct() (Constructor.)

Parameters:

mixed   $out   — 

[ Top ]

__destruct (Destructor)   [line 132]

void __destruct( )

Destructor.
  • Access: public

Overrides PHPUnit2_Util_Printer::__destruct() (Destructor.)
[ Top ]

addError   [line 147]

void addError( PHPUnit2_Framework_Test $test, Exception $e)

An error occurred.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

addFailure   [line 164]

void addFailure( PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)

A failure occurred.
  • Access: public

Parameters:


[ Top ]

addIncompleteTest   [line 181]

void addIncompleteTest( PHPUnit2_Framework_Test $test, Exception $e)

Incomplete test.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

endTest   [line 284]

void endTest( PHPUnit2_Framework_Test $test)

A test ended.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

endTestSuite   [line 243]

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 ]

getXML   [line 301]

string getXML( )

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

[ Top ]

setWriteDocument   [line 316]

string setWriteDocument( $flag)

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

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 265]

void startTest( PHPUnit2_Framework_Test $test)

A test started.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

startTestSuite   [line 198]

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:12:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.