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

Class: PHPUnit2_Extensions_MockObject_Matcher_MethodName

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

Class Overview

PHPUnit2_Extensions_MockObject_Matcher_StatelessInvocation
   |
   --PHPUnit2_Extensions_MockObject_Matcher_MethodName

Invocation matcher which looks for a specific method name in the invocations.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

[line 74]
Invocation matcher which looks for a specific method name in the invocations.

Checks the method name all incoming invocations, the name is checked against the defined constraint $constraint. If the constraint is met it will return true in matches().



[ Top ]


Method Detail

__construct (Constructor)   [line 78]

PHPUnit2_Extensions_MockObject_Matcher_MethodName __construct( $constraint)

  • Access: public

Parameters:

   $constraint   — 

[ Top ]

matches   [line 92]

void matches( PHPUnit2_Extensions_MockObject_Invocation $invocation)

  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   — 

[ Top ]

toString   [line 87]

void toString( )

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