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

  • CallTypeHintPass
  • ClassNamePass
  • ClassPass
  • InstanceMockPass
  • InterfacePass
  • MethodDefinitionPass
  • RemoveBuiltinMethodsThatAreFinalPass
  • RemoveUnserializeForInternalSerializableClassesPass

Interfaces

  • Pass
  • Overview
  • Namespace
  • Class
  • Tree

Class InstanceMockPass

Namespace: Mockery\Generator\StringManipulation\Pass
Located at Mockery/Generator/StringManipulation/Pass/InstanceMockPass.php
Methods summary
public
# apply( $code, Mockery\Generator\MockConfiguration $config )
protected
# appendToClass( $class, $code )
Constants summary
string INSTANCE_MOCK_CODE
# <<<MOCK protected \$_mockery_ignoreVerification = true; public function __construct() { \$this->_mockery_ignoreVerification = false; \$associatedRealObject = \Mockery::fetchMock(__CLASS__); \$directors = \$associatedRealObject->mockery_getExpectations(); foreach (\$directors as \$method=>\$director) { \$expectations = \$director->getExpectations(); // get the director method needed \$existingDirector = \$this->mockery_getExpectationsFor(\$method); if (!\$existingDirector) { \$existingDirector = new \Mockery\ExpectationDirector(\$method, \$this); \$this->mockery_setExpectationsFor(\$method, \$existingDirector); } foreach (\$expectations as \$expectation) { \$clonedExpectation = clone \$expectation; \$existingDirector->addExpectation(\$clonedExpectation); } } \Mockery::getContainer()->rememberMock(\$this); } MOCK
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen