abstract public function Comparator::accepts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/sebastian/comparator/src/Comparator.php \SebastianBergmann\Comparator\Comparator::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
6 methods override Comparator::accepts()
- ArrayComparator::accepts in vendor/
sebastian/ comparator/ src/ ArrayComparator.php - Returns whether the comparator can compare two values.
- ClosureComparator::accepts in vendor/
phpspec/ prophecy/ src/ Prophecy/ Comparator/ ClosureComparator.php - Returns whether the comparator can compare two values.
- ResourceComparator::accepts in vendor/
sebastian/ comparator/ src/ ResourceComparator.php - Returns whether the comparator can compare two values.
- ScalarComparator::accepts in vendor/
sebastian/ comparator/ src/ ScalarComparator.php - Returns whether the comparator can compare two values.
- SplObjectStorageComparator::accepts in vendor/
sebastian/ comparator/ src/ SplObjectStorageComparator.php - Returns whether the comparator can compare two values.
File
- vendor/
sebastian/ comparator/ src/ Comparator.php, line 50
Class
- Comparator
- Abstract base class for comparators which compare values for equality.
Namespace
SebastianBergmann\ComparatorCode
public abstract function accepts($expected, $actual);