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

Class: PHPUnit2_Extensions_MockObject_Invokable

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

Class Overview

PHPUnit2_Extensions_MockObject_Verifiable
   |
   --PHPUnit2_Extensions_MockObject_Invokable

Interface for classes which can be invoked.


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 classes which can be invoked.

The invocation will be taken from a mock object and passed to an object of this class.



[ Top ]


Method Detail

invoke   [line 82]

Object invoke( PHPUnit2_Extensions_MockObject_Invocation $invocation)

Invokes the invocation object $invocation so that it can be checked for expectations or matched against stubs.
  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   —  The invocation object passed from mock object.

[ Top ]

matches   [line 91]

bool matches( PHPUnit2_Extensions_MockObject_Invocation $invocation)

Checks if the invocation matches.
  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   —  The invocation object passed from mock object.

[ Top ]


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