You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,24 @@ This extension provides the following features:
13
13
*`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.
14
14
*`shouldReceive()`, `allows()` and `expects()` methods can be called on the mock object and they work as expected.
15
15
16
-
## Usage
16
+
17
+
## Installation
17
18
18
19
To use this extension, require it in [Composer](https://getcomposer.org/):
19
20
20
-
```bash
21
+
```
21
22
composer require --dev phpstan/phpstan-mockery
22
23
```
23
24
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:
0 commit comments