File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ AspectMock is not an ordinary PHP mocking framework.
55With the power of Aspect Oriented programming and the awesome [ Go-AOP] ( https://github.com/lisachenko/go-aop-php ) library,
66AspectMock allows you to stub and mock practically anything in your PHP code!
77
8- ** Documentation** | [ Test Doubles Builder] ( https://github.com/Codeception/AspectMock/blob/master/docs/Test.md ) | [ ClassProxy] ( https://github.com/Codeception/AspectMock/blob/master/docs/ClassProxy.md ) | [ InstanceProxy] ( https://github.com/Codeception/AspectMock/blob/master/docs/InstanceProxy.md )
8+ ** Documentation** | [ Test Doubles Builder] ( https://github.com/Codeception/AspectMock/blob/master/docs/Test.md ) | [ ClassProxy] ( https://github.com/Codeception/AspectMock/blob/master/docs/ClassProxy.md ) | [ InstanceProxy] ( https://github.com/Codeception/AspectMock/blob/master/docs/InstanceProxy.md ) | [ FuncProxy ] ( https://github.com/Codeception/AspectMock/blob/master/docs/FuncProxy.md )
99
1010** Stability** : alpha
1111
@@ -107,6 +107,15 @@ function testUserCreate()
107107?>
108108```
109109
110+ #### Override even standard PHP functions
111+
112+ ``` php
113+ <?php
114+ namespace demo;
115+ test::func('demo', 'time', 'now');
116+ $this->assertEquals('now', time());
117+ ```
118+
110119#### Beautifully simple
111120
112121Only 4 methods are necessary for method call verification and one method to define test doubles:
You can’t perform that action at this time.
0 commit comments