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

Class: PHPUnit2_Framework_TestFailure

Source Location: /PHPUnit2-2.0.3/Framework/TestFailure.php

Class Overview


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


Author(s):

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

exceptionMessage   [line 113]

string exceptionMessage( )

Returns the exception's message.
  • Access: public

[ Top ]

failedTest   [line 87]

Test failedTest( )

Gets the failed test.
  • Access: public

[ Top ]

isFailure   [line 127]

boolean isFailure( )

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

[ Top ]

thrownException   [line 100]

Exception thrownException( )

Gets the thrown exception.
  • Access: public

[ Top ]

toString   [line 69]

string toString( )

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

[ Top ]

__construct   [line 55]

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 Mon, 27 Sep 2004 04:10:32 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.