Skip to content

Commit 645a0d8

Browse files
committed
expects() support
1 parent ce87154 commit 645a0d8

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

extension.neon

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ services:
66
arguments:
77
stubInterfaceName: PHPStan\Mockery\Type\Allows
88

9+
-
10+
class: PHPStan\Mockery\Reflection\StubMethodsClassReflectionExtension
11+
tags:
12+
- phpstan.broker.methodsClassReflectionExtension
13+
arguments:
14+
stubInterfaceName: PHPStan\Mockery\Type\Expects
15+
916
-
1017
class: PHPStan\Mockery\Type\StubDynamicReturnTypeExtension
1118
tags:
@@ -14,13 +21,28 @@ services:
1421
stubInterfaceName: PHPStan\Mockery\Type\Allows
1522
stubMethodName: allows
1623

24+
-
25+
class: PHPStan\Mockery\Type\StubDynamicReturnTypeExtension
26+
tags:
27+
- phpstan.broker.dynamicMethodReturnTypeExtension
28+
arguments:
29+
stubInterfaceName: PHPStan\Mockery\Type\Expects
30+
stubMethodName: expects
31+
1732
-
1833
class: PHPStan\Mockery\Type\ExpectationAfterStubDynamicReturnTypeExtension
1934
tags:
2035
- phpstan.broker.dynamicMethodReturnTypeExtension
2136
arguments:
2237
stubInterfaceName: PHPStan\Mockery\Type\Allows
2338

39+
-
40+
class: PHPStan\Mockery\Type\ExpectationAfterStubDynamicReturnTypeExtension
41+
tags:
42+
- phpstan.broker.dynamicMethodReturnTypeExtension
43+
arguments:
44+
stubInterfaceName: PHPStan\Mockery\Type\Expects
45+
2446
-
2547
class: PHPStan\Mockery\Type\MockDynamicReturnTypeExtension
2648
tags:

src/Mockery/Type/Expects.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace PHPStan\Mockery\Type;
4+
5+
interface Expects
6+
{
7+
8+
}

0 commit comments

Comments
 (0)