PHP Class PHPUnit_Framework_Constraint_StringMatches, qcodo

...
Author: Sebastian Bergmann ([email protected])
Inheritance: extends PHPUnit_Framework_Constraint_PCREMatch
Show file Open project: qcodo/qcodo

Protected Properties

Property Type Description
$string string

Public Methods

Method Description
__construct ( string $string )
fail ( mixed $other, string $description, boolean $not = FALSE ) Creates the appropriate exception for the constraint which can be caught by the unit test system. This can be called if a call to evaluate() fails.

Method Details

__construct() public method

public __construct ( string $string )
$string string

fail() public method

Creates the appropriate exception for the constraint which can be caught by the unit test system. This can be called if a call to evaluate() fails.
public fail ( mixed $other, string $description, boolean $not = FALSE )
$other mixed The value passed to evaluate() which failed the constraint check.
$description string A string with extra description of what was going on while the evaluation failed.
$not boolean Flag to indicate negation.

Property Details

$string protected property

protected string $string
return string