public function PHPUnit_Framework_Constraint_Or::count in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/Or.php \PHPUnit_Framework_Constraint_Or::count()
Counts the number of constraint elements.
@since Method available since Release 3.4.0
Return value
int
Overrides PHPUnit_Framework_Constraint::count
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Or.php, line 104
Class
- PHPUnit_Framework_Constraint_Or
- Logical OR.
Code
public function count() {
$count = 0;
foreach ($this->constraints as $constraint) {
$count += count($constraint);
}
return $count;
}