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

Class: PHPUnit2_Extensions_Log_XML

Source Location: /PHPUnit2-2.2.1/Extensions/Log/XML.php

Class Overview

PHPUnit2_Util_Printer
   |
   --PHPUnit2_Extensions_Log_XML

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


Author(s):

Copyright:

  • Copyright &copy; 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

__construct (Constructor)   [line 118]

PHPUnit2_Extensions_Log_XML __construct( [mixed $out = NULL])

Constructor.
  • Access: public

Overrides PHPUnit2_Util_Printer::__construct() (Constructor.)

Parameters:

mixed   $out   — 

[ Top ]

__destruct (Destructor)   [line 138]

void __destruct( )

Destructor.
  • Access: public

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

addError   [line 156]

void addError( PHPUnit2_Framework_Test $test, Exception $e)

An error occurred.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

addFailure   [line 176]

void addFailure( PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)

A failure occurred.
  • Access: public

Parameters:


[ Top ]

addIncompleteTest   [line 196]

void addIncompleteTest( PHPUnit2_Framework_Test $test, Exception $e)

Incomplete test.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 
Exception   $e   — 

[ Top ]

endTest   [line 311]

void endTest( PHPUnit2_Framework_Test $test)

A test ended.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

endTestSuite   [line 264]

void endTestSuite( PHPUnit2_Framework_TestSuite $suite)

A testsuite ended.
  • Since: 2.2.0
  • Access: public

Parameters:

PHPUnit2_Framework_TestSuite   $suite   — 

[ Top ]

getXML   [line 331]

string getXML( )

Returns the XML as a string.
  • Since: 2.2.0
  • Access: public

[ Top ]

setWriteDocument   [line 349]

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: 2.2.0
  • Access: public

Parameters:

   $flag   — 

[ Top ]

startTest   [line 289]

void startTest( PHPUnit2_Framework_Test $test)

A test started.
  • Access: public

Parameters:

PHPUnit2_Framework_Test   $test   — 

[ Top ]

startTestSuite   [line 216]

void startTestSuite( PHPUnit2_Framework_TestSuite $suite)

A testsuite started.
  • Since: 2.2.0
  • Access: public

Parameters:

PHPUnit2_Framework_TestSuite   $suite   — 

[ Top ]


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