file-fetcher
Protected Member Functions | List of all members
PHPUnit\Framework\Constraint\ObjectHasAttribute Class Reference
Inheritance diagram for PHPUnit\Framework\Constraint\ObjectHasAttribute:
PHPUnit\Framework\Constraint\ClassHasAttribute PHPUnit\Framework\Constraint\Constraint PHPUnit\Framework\SelfDescribing

Detailed Description

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 ()
 

Member Function Documentation

◆ matches()

PHPUnit\Framework\Constraint\ObjectHasAttribute::matches (   $other)
protected

Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

Parameters
mixed$othervalue or object to evaluate

Reimplemented from PHPUnit\Framework\Constraint\ClassHasAttribute.


The documentation for this class was generated from the following file: