Skip to content

Commit 6a3d3b7

Browse files
committed
Document the phar installation
1 parent a0c2867 commit 6a3d3b7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: README.md

+17
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,27 @@ to any property tagged with `@inject`.
1111

1212
## Installation
1313

14+
### Composer
15+
1416
```bash
1517
composer require --dev zalas/phpunit-injector
1618
```
1719

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+
1835
## Configuration
1936

2037
Enable the service injector listener

0 commit comments

Comments
 (0)