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

Interface MockInterface

Direct known implementers

Mockery\Mock
Namespace: Mockery
Located at Mockery/MockInterface.php
Methods summary
public
# mockery_init( Mockery\Container $container = null, object $partialObject = null )

Alternative setup method to constructor

Alternative setup method to constructor

Parameters

$container
$partialObject
public Mockery\Expectation
# shouldReceive( )

Set expected method calls

Set expected method calls

Returns

Mockery\Expectation
public
# shouldAllowMockingMethod( String $method )

Allows additional methods to be mocked that do not explicitly exist on mocked class

Allows additional methods to be mocked that do not explicitly exist on mocked class

Parameters

$method
name of the method to be mocked
public Mockery\Mock
# shouldIgnoreMissing( mixed $returnValue = null )

Set mock to ignore unexpected methods and return Undefined class

Set mock to ignore unexpected methods and return Undefined class

Parameters

$returnValue
the default return value for calls to missing functions on this mock

Returns

Mockery\Mock
public Mockery\Mock
# shouldAllowMockingProtectedMethods( )

Returns

Mockery\Mock
public Mockery\Mock
# shouldDeferMissing( )

Set mock to defer unexpected methods to it's parent if possible

Set mock to defer unexpected methods to it's parent if possible

Returns

Mockery\Mock
public Mockery\Expectation
# shouldHaveReceived( $method, null $args = null )

Parameters

$method
$args

Returns

Mockery\Expectation
public null
# shouldNotHaveReceived( $method, null $args = null )

Parameters

$method
$args

Returns

null
public Mockery\MockInterface
# byDefault( )

In the event shouldReceive() accepting an array of methods/returns this method will switch them from normal expectations to default expectations

In the event shouldReceive() accepting an array of methods/returns this method will switch them from normal expectations to default expectations

Returns

Mockery\MockInterface
public
# mockery_verify( )

Iterate across all expectation directors and validate each

Iterate across all expectation directors and validate each

Throws

Mockery\CountValidator\Exception
public
# mockery_teardown( )

Tear down tasks for this mock

Tear down tasks for this mock

public integer
# mockery_allocateOrder( )

Fetch the next available allocation order number

Fetch the next available allocation order number

Returns

integer
public
# mockery_setGroup( mixed $group, integer $order )

Set ordering for a group

Set ordering for a group

Parameters

$group
$order
public array
# mockery_getGroups( )

Fetch array of ordered groups

Fetch array of ordered groups

Returns

array
public
# mockery_setCurrentOrder( integer $order )

Set current ordered number

Set current ordered number

Parameters

$order
public integer
# mockery_getCurrentOrder( )

Get current ordered number

Get current ordered number

Returns

integer
public
# mockery_validateOrder( string $method, integer $order )

Validate the current mock's ordering

Validate the current mock's ordering

Parameters

$method
$order

Throws

Mockery\Exception
public integer
# mockery_getExpectationCount( )

Gets the count of expectations for this mock

Gets the count of expectations for this mock

Returns

integer
public Mockery\ExpectationDirector|null
# mockery_setExpectationsFor( $method, Mockery\ExpectationDirector $director )

Return the expectations director for the given method

Return the expectations director for the given method

Returns

Mockery\ExpectationDirector|null

Var

string $method
public Mockery\ExpectationDirector|null
# mockery_getExpectationsFor( $method )

Return the expectations director for the given method

Return the expectations director for the given method

Returns

Mockery\ExpectationDirector|null

Var

string $method
public Mockery\Expectation|null
# mockery_findExpectation( $method, array $args )

Find an expectation matching the given method and arguments

Find an expectation matching the given method and arguments

Returns

Mockery\Expectation|null

Var

string $method
array $args
public Mockery\Container
# mockery_getContainer( )

Return the container for this mock

Return the container for this mock

Returns

Mockery\Container
public string
# mockery_getName( )

Return the name for this mock

Return the name for this mock

Returns

string
public array
# mockery_getMockableProperties( )

Returns

array
public string[]
# mockery_getMockableMethods( )

Returns

string[]
public boolean
# mockery_isAnonymous( )

Returns

boolean
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen