Skip to content

Commit

Permalink
Add missing methods that generate mocks
Browse files Browse the repository at this point in the history
- `createPartialMock()` is available since PHPUnit 5.5.0
- `createTestProxy()` is available since PHPUnit 6.0.0
  • Loading branch information
lcobucci authored and ondrejmirtes committed Dec 11, 2017
1 parent 39c77aa commit 96d2421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Type/PHPUnit/CreateMockDynamicReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class CreateMockDynamicReturnTypeExtension implements \PHPStan\Type\DynamicMetho
private $methods = [
'createMock' => 0,
'createConfiguredMock' => 0,
'createPartialMock' => 0,
'createTestProxy' => 0,
'getMockForAbstractClass' => 0,
'getMockFromWsdl' => 1,
];
Expand Down

0 comments on commit 96d2421

Please sign in to comment.