public function ClosureComparator::accepts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Comparator/ClosureComparator.php \Prophecy\Comparator\ClosureComparator::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
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Comparator/ ClosureComparator.php, line 24
Class
- ClosureComparator
- Closure comparator.
Namespace
Prophecy\ComparatorCode
public function accepts($expected, $actual) {
return is_object($expected) && $expected instanceof \Closure && is_object($actual) && $actual instanceof \Closure;
}