public function PHPUnit_Framework_Constraint_And::count in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/And.php \PHPUnit_Framework_Constraint_And::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/ And.php, line 111
Class
- PHPUnit_Framework_Constraint_And
- Logical AND.
Code
public function count() {
$count = 0;
foreach ($this->constraints as $constraint) {
$count += count($constraint);
}
return $count;
}