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

Class: PHPUnit2_Framework_ComparisonFailure

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

Class Overview

Exception
   |
   --PHPUnit2_Framework_AssertionFailedError
      |
      --PHPUnit2_Framework_ComparisonFailure

Thrown when an assertion for string equality failed.


Author(s):

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Framework_AssertionFailedError

PHPUnit2_Framework_AssertionFailedError::toString()
Wrapper for getMessage() which is declared as final.

Class Details

[line 30]
Thrown when an assertion for string equality failed.


[ Top ]


Method Detail

toString   [line 73]

string toString( )

Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
  • Access: public

Overrides PHPUnit2_Framework_AssertionFailedError::toString() (Wrapper for getMessage() which is declared as final.)
[ Top ]

__construct   [line 56]

void __construct( string $expected, string $actual, [string $message = ''])

Constructs a comparison failure.
  • Access: public

Parameters:

string   $expected     
string   $actual     
string   $message     

[ Top ]


Documentation generated on Mon, 27 Sep 2004 04:10:17 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.