Skip to content

Commit 0057dac

Browse files
committed
Installation instructions
1 parent 935fdd0 commit 0057dac

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,24 @@ This extension provides the following features:
1313
* `Mockery::mock()` and `Mockery::spy()` return an intersection type (see the [detailed explanation of intersection types](https://medium.com/@ondrejmirtes/union-types-vs-intersection-types-fd44a8eacbb)) so that the returned object can be used as both the mock object and the mocked class object.
1414
* `shouldReceive()`, `allows()` and `expects()` methods can be called on the mock object and they work as expected.
1515

16-
## Usage
16+
17+
## Installation
1718

1819
To use this extension, require it in [Composer](https://getcomposer.org/):
1920

20-
```bash
21+
```
2122
composer require --dev phpstan/phpstan-mockery
2223
```
2324

24-
And include extension.neon in your project's PHPStan config:
25+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
26+
27+
<details>
28+
<summary>Manual installation</summary>
29+
30+
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
2531

2632
```
2733
includes:
28-
- vendor/phpstan/phpstan-mockery/extension.neon
34+
- vendor/phpstan/phpstan-mockery/extension.neon
2935
```
36+
</details>

0 commit comments

Comments
 (0)