Navigation
index
next
|
Phake - PHP Mocking Framework v1.0.3 documentation
»
Welcome to Phake - PHP Mocking Framework’s documentation!
¶
Introduction to Phake
Getting Started
Composer Install
Install from Source
Support
Method Stubbing
How Phake::when() Works
Overwriting Existing Stubs
Stubbing Multiple Calls
Stubbing Consecutive Calls
Stubbing Reference Parameters
Partial Mocks
Setting Default Stubs
Stubbing Magic Methods
Method Verification
Verifying Method Parameters
Verifying Multiple Invocations
Verifying Calls Happen in a Particular Order
Verifying No Interaction with a Mock so Far
Verifying No Further Interaction with a Mock
Verifying Magic Methods
Answers
Throwing Exceptions
Calling the Parent
Capturing a Return Value
Custom Answers
Method Parameter Matchers
Using PHPUnit Matchers
Using Hamcrest Matchers
Parameter Capturing
Custom Parameter Matchers
Configuration
Setting the Phake Client
Setting the Mock Class Loader
Indices and tables
¶
Index
Module Index
Search Page
Table Of Contents
Welcome to Phake - PHP Mocking Framework’s documentation!
Indices and tables
Next topic
Introduction to Phake
This Page
Show Source
Quick search
Enter search terms or a module, class or function name.
Navigation
index
next
|
Phake - PHP Mocking Framework v1.0.3 documentation
»