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

Class: PHPUnit2_Extensions_MockObject_Builder_MethodNameMatch

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

Class Overview

PHPUnit2_Extensions_MockObject_Builder_Identity
   |
   --PHPUnit2_Extensions_MockObject_Builder_Stub
      |
      --PHPUnit2_Extensions_MockObject_Builder_Match
         |
         --PHPUnit2_Extensions_MockObject_Builder_ParametersMatch
            |
            --PHPUnit2_Extensions_MockObject_Builder_MethodNameMatch

Builder interface for matcher of method names.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: PHPUnit2_Extensions_MockObject_Builder_ParametersMatch

PHPUnit2_Extensions_MockObject_Builder_ParametersMatch::with()
Sets the parameters to match for, each parameter to this funtion will be part of match. To perform specific matches or constraints create a new PHPUnit2_Framework_Constraint and use it for the parameter.
PHPUnit2_Extensions_MockObject_Builder_ParametersMatch::withAnyParameters()
Sets a matcher which allows any kind of parameters.

Class: PHPUnit2_Extensions_MockObject_Builder_Match

PHPUnit2_Extensions_MockObject_Builder_Match::after()
Defines the expectation which must occur before the current is valid.

Class: PHPUnit2_Extensions_MockObject_Builder_Stub

PHPUnit2_Extensions_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.

Class: PHPUnit2_Extensions_MockObject_Builder_Identity

PHPUnit2_Extensions_MockObject_Builder_Identity::id()
Sets the identification of the expectation to $id.

Class Details

[line 68]
Builder interface for matcher of method names.


[ Top ]


Method Detail

method   [line 79]

PHPUnit2_Extensions_MockObject_Builder_ParametersMatch method( PHPUnit2_Framework_Constraint $name)

Adds a new method name match and returns the parameter match object for further matching possibilities.
  • Access: public

Parameters:

PHPUnit2_Framework_Constraint   $name   —  Constraint for matching method, if a string is passed it will use the PHPUnit2_Framework_Constraint_IsEqual.

[ Top ]


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