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>

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Class Variables

$failedTest =

[line 37]

  • Access: protected



[ Top ]

$thrownException =

[line 43]

  • Access: protected

Type:   Exception


[ Top ]



Method Detail

__construct (Constructor)   [line 55]

PHPUnit2_Framework_TestFailure __construct( 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 ]

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 ]


Documentation generated on Mon, 11 Mar 2019 13:55:58 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.