public function PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php \PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters::__construct()
Parameters
array $parameterGroups:
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ ConsecutiveParameters.php, line 36
Class
- PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters
- Invocation matcher which looks for sets of specific parameters in the invocations.
Code
public function __construct(array $parameterGroups) {
foreach ($parameterGroups as $index => $parameters) {
foreach ($parameters as $parameter) {
if (!$parameter instanceof \PHPUnit_Framework_Constraint) {
$parameter = new \PHPUnit_Framework_Constraint_IsEqual($parameter);
}
$this->_parameterGroups[$index][] = $parameter;
}
}
}