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 ExpectationDirector

Namespace: Mockery
Located at Mockery/ExpectationDirector.php
Methods summary
public
# __construct( string $name, Mockery\MockInterface $mock )

Constructor

Constructor

Parameters

$name
$mock
public
# addExpectation( Mockery\Expectation $expectation )

Add a new expectation to the director

Add a new expectation to the director

Parameters

$expectation
public mixed
# call( array $args )

Handle a method call being directed by this instance

Handle a method call being directed by this instance

Parameters

$args

Returns

mixed
public
# verify( )

Verify all expectations of the director

Verify all expectations of the director

Throws

Mockery\CountValidator\Exception
public mixed
# findExpectation( array $args )

Attempt to locate an expectation matching the provided args

Attempt to locate an expectation matching the provided args

Parameters

$args

Returns

mixed
public
# makeExpectationDefault( Mockery\Expectation $expectation )

Make the given expectation a default for all others assuming it was correctly created last

Make the given expectation a default for all others assuming it was correctly created last

Parameters

$expectation
protected mixed
# _findExpectationIn( array $expectations, array $args )

Search current array of expectations for a match

Search current array of expectations for a match

Parameters

$expectations
$args

Returns

mixed
public array
# getExpectations( )

Return all expectations assigned to this director

Return all expectations assigned to this director

Returns

array
public integer
# getExpectationCount( )

Return the number of expectations assigned to this director.

Return the number of expectations assigned to this director.

Returns

integer
Properties summary
protected string $_name

Method name the director is directing

Method name the director is directing

# null
protected Mockery\MockInterface $_mock

Mock object the director is attached to

Mock object the director is attached to

# null
protected array $_expectations

Stores an array of all expectations for this mock

Stores an array of all expectations for this mock

# array()
protected integer $_expectedOrder

The expected order of next call

The expected order of next call

# null
protected array $_defaults

Stores an array of all default expectations for this mock

Stores an array of all default expectations for this mock

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