You are here

public function PHPUnit_Framework_MockObject_Builder_Stub::will in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php \PHPUnit_Framework_MockObject_Builder_Stub::will()

Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead.

Parameters

PHPUnit_Framework_MockObject_Stub $stub The stub object.:

Return value

PHPUnit_Framework_MockObject_Builder_Identity

1 method overrides PHPUnit_Framework_MockObject_Builder_Stub::will()
PHPUnit_Framework_MockObject_Builder_InvocationMocker::will in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php, line 25

Class

PHPUnit_Framework_MockObject_Builder_Stub
Builder interface for stubs which are actions replacing an invocation.

Code

public function will(PHPUnit_Framework_MockObject_Stub $stub);