private function PHPUnit_Framework_MockObject_Builder_InvocationMocker::canDefineParameters in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php \PHPUnit_Framework_MockObject_Builder_InvocationMocker::canDefineParameters()
Validate that a parameters matcher can be defined, throw exceptions otherwise.
Throws
3 calls to PHPUnit_Framework_MockObject_Builder_InvocationMocker::canDefineParameters()
- PHPUnit_Framework_MockObject_Builder_InvocationMocker::with in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php - PHPUnit_Framework_MockObject_Builder_InvocationMocker::withAnyParameters in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php - PHPUnit_Framework_MockObject_Builder_InvocationMocker::withConsecutive in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php, line 179
Class
- PHPUnit_Framework_MockObject_Builder_InvocationMocker
- Builder for mocked or stubbed invocations.
Code
private function canDefineParameters() {
if ($this->matcher->methodNameMatcher === null) {
throw new PHPUnit_Framework_Exception('Method name matcher is not defined, cannot define parameter ' . ' matcher without one');
}
if ($this->matcher->parametersMatcher !== null) {
throw new PHPUnit_Framework_Exception('Parameter matcher is already defined, cannot redefine');
}
}