Skip to content

Commit 3cf5ea8

Browse files
committed
Adding install information
1 parent d53917c commit 3cf5ea8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,21 @@ To use this extension, you have to install `runkit` first (PECL package). For a
66

77
To be able to mock system function (not user-defined ones), you need to turn on `runkit.internal_override` in the PHP config.
88

9+
## Installation ##
10+
11+
If you use composer, installing MockFunction is easy:
12+
13+
"require-dev": {
14+
"tcz/phpunit-mockfunction": "1.0.0"
15+
}
16+
17+
Then
18+
19+
php composer.phar update tcz/phpunit-mockfunction
20+
921
## Usage ##
1022

11-
Assuming you are in a PHPUnit test.
23+
Assuming you are in a PHPUnit test:
1224

1325
// Back to the future:
1426
$flux_capacitor = new PHPUnit_Extensions_MockFunction( 'time', $this->object );

0 commit comments

Comments
 (0)