PHP Класс PHPUnit_Framework_Constraint_Attribute, qcodo

Автор: Sebastian Bergmann ([email protected])
Наследование: extends PHPUnit_Framework_Constraint
Показать файл Открыть проект

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

Свойство Тип Описание
$attributeName string
$constraint PHPUnit_Framework_Constraint

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

Метод Описание
__construct ( PHPUnit_Framework_Constraint $constraint, string $attributeName )
count ( ) : integer Counts the number of constraint elements.
evaluate ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
fail ( mixed $other, string $description, boolean $not = FALSE )
toString ( ) : string Returns a string representation of the constraint.

Защищенные методы

Метод Описание
customFailureDescription ( $other, $description, $not )

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

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

public __construct ( PHPUnit_Framework_Constraint $constraint, string $attributeName )
$constraint PHPUnit_Framework_Constraint
$attributeName string

count() публичный Метод

Counts the number of constraint elements.
public count ( ) : integer
Результат integer

customFailureDescription() защищенный Метод

protected customFailureDescription ( $other, $description, $not )

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

fail() публичный Метод

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.

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

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

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

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

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

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

protected PHPUnit_Framework_Constraint $constraint
Результат PHPUnit_Framework_Constraint