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) | |
![]() | |
failureDescription ($other) | |
attributeName () | |
![]() | |
exporter () | |
fail ($other, $description, ComparisonFailure $comparisonFailure=null) | |
additionalFailureDescription ($other) | |
Additional Inherited Members | |
![]() | |
__construct (string $attributeName) | |
toString () | |
![]() | |
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.