concise
dev
  • 1. Installation
  • 2. Writing Tests
  • 3. Assertions
  • 4. Running Tests
  • 5. Mocking
    • 5.1. Creating Mocks
    • 5.2. Verifying Mocks
    • 5.3. Exposing
    • 5.4. Stubbing
    • 5.5. Expectations
    • 5.6. Actions
    • 5.7. Properties
    • 5.8. Limitations
  • 6. Syntaxes
  • 7. Modules
  • 8. Integrations
  • 9. Changelog
concise
  • Docs »
  • 5. Mocking
  • Edit on GitHub

5. MockingΒΆ

  • 5.1. Creating Mocks
    • 5.1.1. Normal Mocks
    • 5.1.2. Nice Mocks
    • 5.1.3. Partial Mocks
    • 5.1.4. Constructors
    • 5.1.5. Cloning
    • 5.1.6. Programmatically Building Mocks
    • 5.1.7. Changing the Class Name and Namespace of a Mock
  • 5.2. Verifying Mocks
    • 5.2.1. Manually Verifying Mocks
  • 5.3. Exposing
    • 5.3.1. Methods
    • 5.3.2. All Methods
    • 5.3.3. Properties
  • 5.4. Stubbing
    • 5.4.1. Setting the Same Actions on Multiple Methods
  • 5.5. Expectations
    • 5.5.1. Setting the Same Expectations on Multiple Methods
    • 5.5.2. Expecting Arguments
    • 5.5.3. Ignoring Parameter Values
  • 5.6. Actions
    • 5.6.1. andDo(callback)
    • 5.6.2. andReturn(value)
    • 5.6.3. andReturnCallback(callback)
    • 5.6.4. andReturnProperty(propertyName)
    • 5.6.5. andReturnSelf()
    • 5.6.6. andThrowException(exception)
  • 5.7. Properties
    • 5.7.1. Setting a Single Property
    • 5.7.2. Setting Multiple Properties
    • 5.7.3. Other Information
  • 5.8. Limitations
    • 5.8.1. Traits
    • 5.8.2. Final Classes and Methods
Next Previous

© Copyright 2015, Elliot Chance. Revision bdea3b15.

Built with Sphinx using a theme provided by Read the Docs.