You are here

public function PHPUnit_Framework_MockObject_Builder_InvocationMocker::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php \PHPUnit_Framework_MockObject_Builder_InvocationMocker::__construct()

Parameters

PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection:

PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher:

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php, line 37

Class

PHPUnit_Framework_MockObject_Builder_InvocationMocker
Builder for mocked or stubbed invocations.

Code

public function __construct(PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection, PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher) {
  $this->collection = $collection;
  $this->matcher = new PHPUnit_Framework_MockObject_Matcher($invocationMatcher);
  $this->collection
    ->addMatcher($this->matcher);
}