Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Classes

  • CompositeExpectation
  • Configuration
  • Container
  • Expectation
  • ExpectationDirector
  • Loader
  • MethodCall
  • Mock
  • ReceivedMethodCalls
  • Recorder
  • Undefined
  • VerificationDirector
  • VerificationExpectation

Interfaces

  • Exception
  • ExpectationInterface
  • MockInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class Configuration

Namespace: Mockery
Located at Mockery/Configuration.php
Methods summary
public
# allowMockingNonExistentMethods( boolean $flag = true )

Set boolean to allow/prevent mocking of non-existent methods

Set boolean to allow/prevent mocking of non-existent methods

Parameters

$flag
public boolean
# mockingNonExistentMethodsAllowed( )

Return flag indicating whether mocking non-existent methods allowed

Return flag indicating whether mocking non-existent methods allowed

Returns

boolean
public
# allowMockingMethodsUnnecessarily( boolean $flag = true )

Set boolean to allow/prevent unnecessary mocking of methods

Set boolean to allow/prevent unnecessary mocking of methods

Parameters

$flag
public boolean
# mockingMethodsUnnecessarilyAllowed( )

Return flag indicating whether mocking non-existent methods allowed

Return flag indicating whether mocking non-existent methods allowed

Returns

boolean
public
# setInternalClassMethodParamMap( string $class, string $method, array $map )

Set a parameter map (array of param signature strings) for the method of an internal PHP class.

Set a parameter map (array of param signature strings) for the method of an internal PHP class.

Parameters

$class
$method
$map
public
# resetInternalClassMethodParamMaps( )

Remove all overriden parameter maps from internal PHP classes.

Remove all overriden parameter maps from internal PHP classes.

public array
# getInternalClassMethodParamMap( $class, $method )

Get the parameter map of an internal PHP class method

Get the parameter map of an internal PHP class method

Returns

array
public
# getInternalClassMethodParamMaps( )
Properties summary
protected boolean $_allowMockingNonExistentMethod

Boolean assertion of whether we can mock methods which do not actually exist for the given class or object (ignored for unreal mocks)

Boolean assertion of whether we can mock methods which do not actually exist for the given class or object (ignored for unreal mocks)

# true
protected boolean $_allowMockingMethodsUnnecessarily

Boolean assertion of whether we ignore unnecessary mocking of methods, i.e. when method expectations are made, set using a zeroOrMoreTimes() constraint, and then never called. Essentially such expectations are not required and are just taking up test space.

Boolean assertion of whether we ignore unnecessary mocking of methods, i.e. when method expectations are made, set using a zeroOrMoreTimes() constraint, and then never called. Essentially such expectations are not required and are just taking up test space.

# true
protected array $_internalClassParamMap

Parameter map for use with PHP internal classes.

Parameter map for use with PHP internal classes.

# array()
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen