public function ExceptionComparator::accepts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/sebastian/comparator/src/ExceptionComparator.php \SebastianBergmann\Comparator\ExceptionComparator::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 ObjectComparator::accepts
File
- vendor/
sebastian/ comparator/ src/ ExceptionComparator.php, line 25
Class
- ExceptionComparator
- Compares Exception instances for equality.
Namespace
SebastianBergmann\ComparatorCode
public function accepts($expected, $actual) {
return $expected instanceof \Exception && $actual instanceof \Exception;
}