annotate vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php @ 7:848c88cfe644

More layout
author Chris Cannam
date Fri, 05 Jan 2018 13:59:44 +0000
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2 /*
Chris@0 3 * This file is part of the PHPUnit_MockObject package.
Chris@0 4 *
Chris@0 5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
Chris@0 6 *
Chris@0 7 * For the full copyright and license information, please view the LICENSE
Chris@0 8 * file that was distributed with this source code.
Chris@0 9 */
Chris@0 10
Chris@0 11 /**
Chris@0 12 * An object that stubs the process of a normal method for a mock object.
Chris@0 13 *
Chris@0 14 * The stub object will replace the code for the stubbed method and return a
Chris@0 15 * specific value instead of the original value.
Chris@0 16 *
Chris@0 17 * @since Interface available since Release 1.0.0
Chris@0 18 */
Chris@0 19 interface PHPUnit_Framework_MockObject_Stub extends PHPUnit_Framework_SelfDescribing
Chris@0 20 {
Chris@0 21 /**
Chris@0 22 * Fakes the processing of the invocation $invocation by returning a
Chris@0 23 * specific value.
Chris@0 24 *
Chris@0 25 * @param PHPUnit_Framework_MockObject_Invocation $invocation
Chris@0 26 * The invocation which was mocked and matched by the current method
Chris@0 27 * and argument matchers.
Chris@0 28 * @return mixed
Chris@0 29 */
Chris@0 30 public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation);
Chris@0 31 }