Skip to content

Commit 748f65c

Browse files
committed
docs: fix README
1 parent 217ae9c commit 748f65c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ So by default we can replace only a dozen pre-defined functions in [FunctionPatc
105105

106106
`MonkeyPatch::patchFunction()` replaces PHP native function `mt_rand()` in `Welcome::index` method, and it will return `100` in the test method.
107107

108-
**Note:** If you call `MonkeyPatch::patchFunction()` without 3rd argument, all the functions (located in `include_paths` and not in `exclude_paths`) called in the test method will be replaced. So, for example, a function in CodeIgniter code might be replaced and it results in unexpected outcome.
108+
**Note:** If you call `MonkeyPatch::patchFunction()` without 3rd argument, all the functions (located in `include_paths` and not in `exclude_paths`) called in the test method will be replaced. So, for example, a function in your library code might be replaced, and it results in an unexpected outcome.
109109

110110
#### Change Return Value
111111

@@ -177,7 +177,7 @@ This patcher allows replacement of constant value.
177177
}
178178
~~~
179179

180-
``MonkeyPatch::patchConstant()` replaces the return value of the constant `ENVIRONMENT` in `Welcome::index` method.
180+
`MonkeyPatch::patchConstant()` replaces the return value of the constant `ENVIRONMENT` in `Welcome::index` method.
181181

182182
There are a few known limitations:
183183

0 commit comments

Comments
 (0)