protected function PHPUnit_Framework_Constraint_Count::matches in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/Count.php \PHPUnit_Framework_Constraint_Count::matches()
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
Parameters
mixed $other:
Return value
bool
Overrides PHPUnit_Framework_Constraint::matches
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Count.php, line 37
Class
- PHPUnit_Framework_Constraint_Count
- @since Class available since Release 3.6.0
Code
protected function matches($other) {
return $this->expectedCount === $this
->getCountOf($other);
}