|
Lggr
|


Public Member Functions | |
| __construct ($attributeName) | |
| toString () | |
Public Member Functions inherited from PHPUnit\Framework\Constraint\Constraint | |
| evaluate ($other, $description='', $returnResult=false) | |
| count () | |
Protected Member Functions | |
| matches ($other) | |
| failureDescription ($other) | |
Protected Member Functions inherited from PHPUnit\Framework\Constraint\Constraint | |
| fail ($other, $description, ComparisonFailure $comparisonFailure=null) | |
| additionalFailureDescription ($other) | |
Protected Attributes | |
| $attributeName | |
Protected Attributes inherited from PHPUnit\Framework\Constraint\Constraint | |
| $exporter | |
Constraint that asserts that the class it is evaluated for has a given attribute.
The attribute name is passed in the constructor.
| PHPUnit\Framework\Constraint\ClassHasAttribute::__construct | ( | $attributeName | ) |
| string | $attributeName |
|
protected |
Returns the description of the failure
The beginning of failure messages is "Failed asserting that" in most cases. This method should return the second part of that sentence.
| mixed | $other | Evaluated value or object. |
Reimplemented from PHPUnit\Framework\Constraint\Constraint.
|
protected |
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
| mixed | $other | Value or object to evaluate. |
Reimplemented from PHPUnit\Framework\Constraint\Constraint.
Reimplemented in PHPUnit\Framework\Constraint\ClassHasStaticAttribute, and PHPUnit\Framework\Constraint\ObjectHasAttribute.
| PHPUnit\Framework\Constraint\ClassHasAttribute::toString | ( | ) |
Returns a string representation of the constraint.
Implements PHPUnit\Framework\SelfDescribing.
Reimplemented in PHPUnit\Framework\Constraint\ClassHasStaticAttribute.
1.8.17