Skip to content

Commit

Permalink
fix(doc): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm-ctrlz committed Sep 24, 2021
1 parent 24deaed commit 9d046fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ There are several classes that will do the work:

- To use with PHPUnit:
- `MockedMethod` to mock method "globally" and use PHPUnit's `*Mockers` - `expects/willReturn/willReturnCallback/...`
- `MockedFunction`
- For class methods:
- `MockedClassMethod` to mock any class with closure
- `UndefinedClassMethod` to make method disappear
Expand All @@ -23,6 +24,9 @@ There are several classes that will do the work:
- For global constants:
- `MockedGlobalConstant`
- `UndefinedGlobalConstant`
- For functions (global or Namespaced):
- `MockedFunction`
- `UndefinedFunction`

# Install

Expand Down Expand Up @@ -95,10 +99,6 @@ Thing to keep in mind before using:
- Mocking methods will hit performance (a bit)
- To mock static class we must check (and mock) children of mocking class

## Todo

- Add support for mocking global functions

# Powered by

- [runkit7](https://github.com/runkit7/runkit7)
Expand Down

0 comments on commit 9d046fe

Please sign in to comment.