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

Class: PHPUnit2_Framework_TestFailure

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

Class Overview


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


Author(s):

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Class Variables

$failedTest =

[line 38]

  • Access: protected



[ Top ]

$thrownException =

[line 44]

  • Access: protected

Type:   Exception


[ Top ]



Method Detail

__construct (Constructor)   [line 56]

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 114]

string exceptionMessage( )

Returns the exception's message.
  • Access: public

[ Top ]

failedTest   [line 88]

Test failedTest( )

Gets the failed test.
  • Access: public

[ Top ]

isFailure   [line 128]

boolean isFailure( )

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

[ Top ]

thrownException   [line 101]

Exception thrownException( )

Gets the thrown exception.
  • Access: public

[ Top ]

toString   [line 70]

string toString( )

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

[ Top ]


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