Skip to content

Commit 66264df

Browse files
committed
updated readme for func
1 parent 05c61df commit 66264df

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AspectMock is not an ordinary PHP mocking framework.
55
With the power of Aspect Oriented programming and the awesome [Go-AOP](https://github.com/lisachenko/go-aop-php) library,
66
AspectMock 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

112121
Only 4 methods are necessary for method call verification and one method to define test doubles:

0 commit comments

Comments
 (0)