Add comments explaining custom PHPStan extensions
[MAILPOET-2429]
This commit is contained in:
committed by
Jack Kitterhing
parent
e3176a3edf
commit
3366d9eb85
@ -1,8 +1,11 @@
|
||||
services:
|
||||
# resolves return type from Stub::make(SomeMockedClass::class) and other Stub methods
|
||||
-
|
||||
class: MailPoet\PHPStan\Extensions\CodeceptionExtension\Type\StubDynamicReturnTypeExtension
|
||||
tags:
|
||||
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
|
||||
|
||||
# resolves return type from $this->make(SomeMockedClass::class) and other test case methods
|
||||
-
|
||||
class: MailPoet\PHPStan\Extensions\CodeceptionExtension\Type\TestCaseDynamicReturnTypeExtension
|
||||
tags:
|
||||
|
@ -6,10 +6,13 @@ parameters:
|
||||
- markTestSkipped
|
||||
|
||||
services:
|
||||
# resolves return type from $this->createMock(SomeMockedClass::class) and other methods in PHPUnit_Framework_TestCase
|
||||
-
|
||||
class: MailPoet\PHPStan\Extensions\PHPUnit5CompatExtension\Type\CreateMockDynamicReturnTypeExtension
|
||||
tags:
|
||||
- phpstan.broker.dynamicMethodReturnTypeExtension
|
||||
|
||||
# resolves return type from $this->getMockBuilder(SomeMockedClass::class) in PHPUnit_Framework_TestCase
|
||||
-
|
||||
class: MailPoet\PHPStan\Extensions\PHPUnit5CompatExtension\Type\GetMockBuilderDynamicReturnTypeExtension
|
||||
tags:
|
||||
|
Reference in New Issue
Block a user