PHP Class PHPUnit_Framework_Constraint_Exception, phpunit

Inheritance: extends PHPUnit_Framework_Constraint
Show file Open project: sebastianbergmann/phpunit Class Usage Examples

Protected Properties

Property Type Description
$className string

Public Methods

Method Description
__construct ( string $className )
toString ( ) : string Returns a string representation of the constraint.

Protected Methods

Method Description
failureDescription ( mixed $other ) : string Returns the description of the failure
matches ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

Method Details

__construct() public method

public __construct ( string $className )
$className string

failureDescription() protected method

The beginning of failure messages is "Failed asserting that" in most cases. This method should return the second part of that sentence.
protected failureDescription ( mixed $other ) : string
$other mixed Evaluated value or object.
return string

matches() protected method

Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
protected matches ( mixed $other ) : boolean
$other mixed Value or object to evaluate.
return boolean

toString() public method

Returns a string representation of the constraint.
public toString ( ) : string
return string

Property Details

$className protected property

protected string $className
return string