PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Extensions_MockObject_Stub

Source Location: /PHPUnit2-3.0.0alpha11/Extensions/MockObject/Stub.php

Class Overview

PHPUnit2_Framework_SelfDescribing
   |
   --PHPUnit2_Extensions_MockObject_Stub

An object that stubs the process of a normal method for a mock object.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Framework_SelfDescribing

PHPUnit2_Framework_SelfDescribing::toString()
Returns a string representation of the object.

Class Details

[line 72]
An object that stubs the process of a normal method for a mock object.

The stub object will replace the code for the stubbed method and return a specific value instead of the original value.



[ Top ]


Method Detail

invoke   [line 83]

mixed invoke( PHPUnit2_Extensions_MockObject_Invocation $invocation)

Fakes the processesing of the invocation $invocation by returning a specific value.
  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   —  The invocation which was mocked and matched by the current method and argument matchers.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.