PHP Класс PHPUnit_Framework_Constraint_ClassHasAttribute, qcodo

The attribute name is passed in the constructor.
Автор: Sebastian Bergmann ([email protected])
Наследование: extends PHPUnit_Framework_Constraint
Показать файл Открыть проект

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

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

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

Метод Описание
__construct ( string $attributeName )
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.

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

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

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

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

public __construct ( string $attributeName )
$attributeName string

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

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

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

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

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

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