|
file-fetcher
|
Constraint that asserts that the object it is evaluated for has a given attribute.
The attribute name is passed in the constructor.
Protected Member Functions | |
| matches ($other) | |
Protected Member Functions inherited from PHPUnit\Framework\Constraint\ClassHasAttribute | |
| failureDescription ($other) | |
| attributeName () | |
Protected Member Functions inherited from PHPUnit\Framework\Constraint\Constraint | |
| exporter () | |
| fail ($other, $description, ComparisonFailure $comparisonFailure=null) | |
| additionalFailureDescription ($other) | |
Additional Inherited Members | |
Public Member Functions inherited from PHPUnit\Framework\Constraint\ClassHasAttribute | |
| __construct (string $attributeName) | |
| toString () | |
Public Member Functions inherited from PHPUnit\Framework\Constraint\Constraint | |
| evaluate ($other, string $description='', bool $returnResult=false) | |
| count () | |
|
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\ClassHasAttribute.
1.8.17