File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,27 @@ to any property tagged with `@inject`.
11
11
12
12
## Installation
13
13
14
+ ### Composer
15
+
14
16
``` bash
15
17
composer require --dev zalas/phpunit-injector
16
18
```
17
19
20
+ ### Phar
21
+
22
+ The extension is also distributed as a PHAR, which can be downloaded together with its pubkey from the most recent
23
+ [ Github Release] ( https://github.com/jakzal/phpunit-injector/releases ) .
24
+
25
+ Put the extension and its key in your PHPUnit extensions directory.
26
+ Remember to instruct PHPUnit to load extensions in your ` phpunit.xml ` :
27
+
28
+ ``` xml
29
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/7.0/phpunit.xsd"
30
+ extensionsDirectory =" tools/phpunit.d"
31
+ >
32
+ </phpunit >
33
+ ```
34
+
18
35
## Configuration
19
36
20
37
Enable the service injector listener
You can’t perform that action at this time.
0 commit comments