public function ArrayComparator::accepts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/sebastian/comparator/src/ArrayComparator.php \SebastianBergmann\Comparator\ArrayComparator::accepts()
Returns whether the comparator can compare two values.
Parameters
mixed $expected The first value to compare:
mixed $actual The second value to compare:
Return value
bool
Overrides Comparator::accepts
1 method overrides ArrayComparator::accepts()
- ObjectComparator::accepts in vendor/
sebastian/ comparator/ src/ ObjectComparator.php - Returns whether the comparator can compare two values.
File
- vendor/
sebastian/ comparator/ src/ ArrayComparator.php, line 25
Class
- ArrayComparator
- Compares arrays for equality.
Namespace
SebastianBergmann\ComparatorCode
public function accepts($expected, $actual) {
return is_array($expected) && is_array($actual);
}