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

__construct (Constructor)   [line 56]

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

Constructs a comparison failure.
  • Access: public

Parameters:

string   $expected   — 
string   $actual   — 
string   $message   — 

[ Top ]

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 ]


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