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