1
1
<?php
2
-
3
- declare (strict_types = 1 );
2
+ declare (strict_types=1 );
4
3
5
4
namespace Lookyman \PHPStan \Symfony \Type ;
6
5
22
21
final class ContainerInterfaceDynamicReturnTypeExtensionTest extends TestCase
23
22
{
24
23
25
- public function testImplementsDynamicMethodReturnTypeExtension ()
24
+ public function testImplementsDynamicMethodReturnTypeExtension (): void
26
25
{
27
26
self ::assertInstanceOf (
28
27
DynamicMethodReturnTypeExtension::class,
29
28
new ContainerInterfaceDynamicReturnTypeExtension (new ServiceMap (__DIR__ . '/../container.xml ' ))
30
29
);
31
30
}
32
31
33
- public function testGetClass ()
32
+ public function testGetClass (): void
34
33
{
35
34
$ extension = new ContainerInterfaceDynamicReturnTypeExtension (new ServiceMap (__DIR__ . '/../container.xml ' ));
36
35
self ::assertEquals ('Symfony\Component\DependencyInjection\ContainerInterface ' , $ extension ->getClass ());
37
36
}
38
37
39
- public function testIsMethodSupported ()
38
+ public function testIsMethodSupported (): void
40
39
{
41
40
$ methodGet = $ this ->createMock (MethodReflection::class);
42
41
$ methodGet ->expects (self ::once ())->method ('getName ' )->willReturn ('get ' );
@@ -52,7 +51,7 @@ public function testIsMethodSupported()
52
51
/**
53
52
* @dataProvider getTypeFromMethodCallProvider
54
53
*/
55
- public function testGetTypeFromMethodCall (MethodReflection $ methodReflection , MethodCall $ methodCall , Type $ expectedType )
54
+ public function testGetTypeFromMethodCall (MethodReflection $ methodReflection , MethodCall $ methodCall , Type $ expectedType ): void
56
55
{
57
56
$ extension = new ContainerInterfaceDynamicReturnTypeExtension (new ServiceMap (__DIR__ . '/../container.xml ' ));
58
57
$ type = $ extension ->getTypeFromMethodCall (
0 commit comments