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

Class: PHPUnit2_Framework_TestFailure

Source Location: /PHPUnit2-3.0.0alpha11/Framework/TestFailure.php

Class Overview


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


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

exceptionMessage   [line 139]

string exceptionMessage( )

Returns the exception's message.
  • Access: public

[ Top ]

failedTest   [line 117]

Test failedTest( )

Gets the failed test.
  • Access: public

[ Top ]

isFailure   [line 151]

boolean isFailure( )

Returns TRUE if the thrown exception is of type AssertionFailedError.
  • Access: public

[ Top ]

thrownException   [line 128]

Exception thrownException( )

Gets the thrown exception.
  • Access: public

[ Top ]

toString   [line 101]

string toString( )

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

[ Top ]

__construct   [line 89]

void __construct( mixed PHPUnit2_Framework_Test$failedTest, mixed Exception$thrownException, PHPUnit2_Framework_Test $failedTest, Exception $thrownException)

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

Parameters:

PHPUnit2_Framework_Test   $failedTest     
Exception   $thrownException     

[ Top ]


Documentation generated on Tue, 12 Sep 2006 09:37:58 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.