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

Class: PHPUnit2_Framework_AssertionFailedError

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

Class Overview

Exception
   |
   --PHPUnit2_Framework_AssertionFailedError

Thrown when an assertion failed.


Author(s):

Copyright:

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

Methods


Child classes:

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.

Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace

Inherited Methods

Class: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )
__wakeup ( )

Class Details

[line 28]
Thrown when an assertion failed.


[ Top ]


Method Detail

toString   [line 37]

string toString( )

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

Overridden in child classes as:

PHPUnit2_Framework_ComparisonFailure::toString()
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.

[ Top ]


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