PHP Class PHPUnit_Framework_Constraint_IsType, qcodo

The expected value is passed in the constructor.
Inheritance: extends PHPUnit_Framework_Constraint
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Свойство Type Description
$type string
$types array

Méthodes publiques

Méthode Description
__construct ( string $type )
evaluate ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
toString ( ) : string Returns a string representation of the constraint.

Method Details

__construct() public méthode

public __construct ( string $type )
$type string

evaluate() public méthode

Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
public evaluate ( 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

$type protected_oe property

protected string $type
Résultat string

$types protected_oe property

protected array $types
Résultat array