PHP Класс PHPUnit_Framework_Constraint_IsType, qcodo

The expected value is passed in the constructor.
Наследование: extends PHPUnit_Framework_Constraint
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$type string
$types array

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

public __construct ( string $type )
$type string

evaluate() публичный метод

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.
Результат boolean

toString() публичный метод

Returns a string representation of the constraint.
public toString ( ) : string
Результат string

Описание свойств

$type защищенное свойство

protected string $type
Результат string

$types защищенное свойство

protected array $types
Результат array