You are here

public function PHPUnit_Framework_MockObject_InvocationMocker::expects in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php \PHPUnit_Framework_MockObject_InvocationMocker::expects()

Parameters

PHPUnit_Framework_MockObject_Matcher_Invocation $matcher:

Return value

PHPUnit_Framework_MockObject_Builder_InvocationMocker

File

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

Class

PHPUnit_Framework_MockObject_InvocationMocker
Mocker for invocations which are sent from PHPUnit_Framework_MockObject_MockObject objects.

Code

public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) {
  return new PHPUnit_Framework_MockObject_Builder_InvocationMocker($this, $matcher);
}