class
Illuminate
/
Testing
/
Constraints
/
ArraySubset
You are viewing an older version of the documentation. For the latest, please visit master documentation.
final
ArraySubset
Extends
-
PHPUnit\...\Constraint
Properties
private
$subset iterable
Default: null
private
$strict bool
Default: null
Methods
public
__construct ( iterable $subset , bool $strict ) : void
Create a new array subset constraint instance.
Parameters
- $subset iterable
- $strict bool
public
evaluate ( $other , string $description , bool $returnResult ) : bool|null
Evaluates the constraint for parameter $other.
Parameters
- $other mixed
- $description string
- $returnResult bool
public
toString ( ) : string
Returns a string representation of the constraint.
protected
failureDescription ( $other ) : string
Returns the description of the failure.
Parameters
- $other mixed
private
toArray ( iterable $other ) : array
Returns the description of the failure.
Parameters
- $other iterable