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 Recorder

Namespace: Mockery
Located at Mockery/Recorder.php
Methods summary
public
# __construct( Mockery\MockInterface $mock, object $subject )

Construct accepting the mock object on which expectations are to be recorded. The second parameter is the subject object, passed into a \Mockery::mock() call in the same way as a partial mock requires.

Construct accepting the mock object on which expectations are to be recorded. The second parameter is the subject object, passed into a \Mockery::mock() call in the same way as a partial mock requires.

Parameters

$mock
$subject
public
# shouldBeStrict( )

Sets the recorded into strict mode where method calls are more strictly matched against the argument and call count and ordering is also set as enforceable.

Sets the recorded into strict mode where method calls are more strictly matched against the argument and call count and ordering is also set as enforceable.

public mixed
# __call( string $method, array $args )

Intercept all calls on the subject, and use the call details to create a new expectation. The actual return value is then returned after being recorded.

Intercept all calls on the subject, and use the call details to create a new expectation. The actual return value is then returned after being recorded.

Parameters

$method
$args

Returns

mixed
Properties summary
protected object $_mock

Mock object on which all recorded interactions will be set as expectations

Mock object on which all recorded interactions will be set as expectations

# null
protected object $_subject

The subject object whose interactions are being recorded

The subject object whose interactions are being recorded

# null
protected boolean $_strict

Flag indicating whether the recording should maintain a strict adherence to the recorded interactions, i.e. the usual Mockery flexibility is suspended, ordering is enforced, and arguments received are set as exact requirements.

Flag indicating whether the recording should maintain a strict adherence to the recorded interactions, i.e. the usual Mockery flexibility is suspended, ordering is enforced, and arguments received are set as exact requirements.

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