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

Class: PHPUnit2_Framework_AssertionFailedError

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

Class Overview

Exception
   |
   --PHPUnit2_Framework_AssertionFailedError

Thrown when an assertion failed.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Child classes:

PHPUnit2_Framework_ExpectationFailedException
Exception for expectations which failed their check.
PHPUnit2_Framework_ComparisonFailure
Thrown when an assertion for string equality failed.
PHPUnit2_Framework_IncompleteTestError
Extension to PHPUnit2_Framework_AssertionFailedError to mark the special case of an incomplete test.
PHPUnit2_Framework_SkippedTestError
Extension to PHPUnit2_Framework_AssertionFailedError to mark the special case of a skipped test.

Inherited Variables

Inherited Methods


Class Details

[line 68]
Thrown when an assertion failed.


[ Top ]


Method Detail

getLocation   [line 77]

array getLocation( )

Returns the location where this failure occured.
  • Since: Method available since Release 3.0.0
  • Access: public

[ Top ]

toString   [line 99]

string toString( )

Wrapper for getMessage() which is declared as final.
  • Access: public

Overridden in child classes as:

PHPUnit2_Framework_ComparisonFailure_Array::toString()
Returns a string describing the difference between the expected and the actual array.
PHPUnit2_Framework_ComparisonFailure_Object::toString()
Returns a string describing the difference between the expected and the actual object.
PHPUnit2_Framework_ComparisonFailure_Scalar::toString()
Returns a string describing the difference between the expected and the actual scalar value.
PHPUnit2_Framework_ComparisonFailure_String::toString()
Returns a string describing the difference between the expected and the actual string value.
PHPUnit2_Framework_ComparisonFailure_Type::toString()
Returns a string describing the type difference between the expected and the actual value.

[ Top ]


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