PHP Class PHPUnit_Framework_Constraint_Exception, phpunit

Inheritance: extends PHPUnit_Framework_Constraint
Afficher le fichier Open project: sebastianbergmann/phpunit Class Usage Examples

Protected Properties

Свойство Type Description
$className string

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

public __construct ( string $className )
$className string

failureDescription() protected méthode

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.
Résultat string

matches() protected méthode

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.
Résultat boolean

toString() public méthode

Returns a string representation of the constraint.
public toString ( ) : string
Résultat string

Property Details

$className protected_oe property

protected string $className
Résultat string