PHP Class PHPUnit_Framework_Constraint_TraversableContainsOnly, qcodo

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

Protected Properties

Property Type Description
$constraint PHPUnit_Framework_Constraint
$type string

Public Methods

Method Description
__construct ( string $type, boolean $isNativeType = TRUE )
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 method

public __construct ( string $type, boolean $isNativeType = TRUE )
$type string
$isNativeType boolean

evaluate() public method

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.
return boolean

toString() public method

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

Property Details

$constraint protected property

protected PHPUnit_Framework_Constraint $constraint
return PHPUnit_Framework_Constraint

$type protected property

protected string $type
return string