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

Class: PHPUnit_TestFailure

Source Location: /PHPUnit-1.3.2/PHPUnit/TestFailure.php

Class Overview


A TestFailure collects a failed test together with the caught exception.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

[line 61]
A TestFailure collects a failed test together with the caught exception.


[ Top ]


Method Detail

PHPUnit_TestFailure (Constructor)   [line 81]

PHPUnit_TestFailure PHPUnit_TestFailure( object &$failedTest, string &$thrownException)

Constructs a TestFailure with the given test and exception.
  • Access: public

Parameters:

object   &$failedTest     
string   &$thrownException     

[ Top ]

failedTest   [line 92]

object &failedTest( )

Gets the failed test.
  • Access: public

[ Top ]

thrownException   [line 102]

object &thrownException( )

Gets the thrown exception.
  • Access: public

[ Top ]

toString   [line 112]

string toString( )

Returns a short description of the failure.
  • Access: public

[ Top ]


Documentation generated on Thu, 10 Nov 2005 05:02:24 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.