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

Class: PHPUnit2_Extensions_MockObject_MockObject

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

Class Overview

PHPUnit2_Extensions_MockObject_Verifiable
   |
   --PHPUnit2_Extensions_MockObject_MockObject

Interface for all mock objects which are generated by PHPUnit2_Extensions_MockObject_Mock.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Extensions_MockObject_Verifiable

PHPUnit2_Extensions_MockObject_Verifiable::verify()
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.

Class Details

[line 72]
Interface for all mock objects which are generated by PHPUnit2_Extensions_MockObject_Mock.


[ Top ]


Method Detail

expects   [line 88]

PHPUnit2_Extensions_MockObject_Builder_MethodNameMatch expects( PHPUnit2_Extensions_MockObject_Matcher_Invocation $invocation)

Registers a new expectation in the mock object and returns the match object which can be infused with further details.
  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Matcher_Invocation   $invocation   —  The invocation handler for the method calls.

[ Top ]

getInvocationMocker   [line 79]

PHPUnit2_Extensions_MockObject_InvocationMocker getInvocationMocker( )

Returns the current invocation mocker which keeps track of expecations and stubs.
  • Access: public

[ Top ]


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