Add comments explaining custom PHPStan extensions

[MAILPOET-2429]
This commit is contained in:
Jan Jakeš
2019-10-17 13:19:45 +02:00
committed by Jack Kitterhing
parent e3176a3edf
commit 3366d9eb85
2 changed files with 6 additions and 0 deletions

View File

@ -1,8 +1,11 @@
services: services:
# resolves return type from Stub::make(SomeMockedClass::class) and other Stub methods
- -
class: MailPoet\PHPStan\Extensions\CodeceptionExtension\Type\StubDynamicReturnTypeExtension class: MailPoet\PHPStan\Extensions\CodeceptionExtension\Type\StubDynamicReturnTypeExtension
tags: tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension - phpstan.broker.dynamicStaticMethodReturnTypeExtension
# resolves return type from $this->make(SomeMockedClass::class) and other test case methods
- -
class: MailPoet\PHPStan\Extensions\CodeceptionExtension\Type\TestCaseDynamicReturnTypeExtension class: MailPoet\PHPStan\Extensions\CodeceptionExtension\Type\TestCaseDynamicReturnTypeExtension
tags: tags:

View File

@ -6,10 +6,13 @@ parameters:
- markTestSkipped - markTestSkipped
services: services:
# resolves return type from $this->createMock(SomeMockedClass::class) and other methods in PHPUnit_Framework_TestCase
- -
class: MailPoet\PHPStan\Extensions\PHPUnit5CompatExtension\Type\CreateMockDynamicReturnTypeExtension class: MailPoet\PHPStan\Extensions\PHPUnit5CompatExtension\Type\CreateMockDynamicReturnTypeExtension
tags: tags:
- phpstan.broker.dynamicMethodReturnTypeExtension - phpstan.broker.dynamicMethodReturnTypeExtension
# resolves return type from $this->getMockBuilder(SomeMockedClass::class) in PHPUnit_Framework_TestCase
- -
class: MailPoet\PHPStan\Extensions\PHPUnit5CompatExtension\Type\GetMockBuilderDynamicReturnTypeExtension class: MailPoet\PHPStan\Extensions\PHPUnit5CompatExtension\Type\GetMockBuilderDynamicReturnTypeExtension
tags: tags: