1
1
<?php
2
2
3
- namespace mglaman \PHPStanDrupal \Drupal ;
3
+ namespace mglaman \PHPStanDrupal \Tests ;
4
4
5
+ use mglaman \PHPStanDrupal \Type \EntityTypeManagerGetStorageDynamicReturnTypeExtension ;
5
6
use PhpParser \Node \Arg ;
6
7
use PhpParser \Node \Expr ;
7
8
use PhpParser \Node \Expr \MethodCall ;
10
11
use PHPStan \Reflection \MethodReflection ;
11
12
use PHPStan \Reflection \ParametersAcceptor ;
12
13
use PHPStan \ShouldNotHappenException ;
13
- use PHPStan \Type \EntityTypeManagerGetStorageDynamicReturnTypeExtension ;
14
14
use PHPStan \Type \ObjectType ;
15
15
use PHPUnit \Framework \TestCase ;
16
16
use Prophecy \Prophet ;
@@ -32,10 +32,10 @@ protected function setUp(): void
32
32
}
33
33
34
34
/**
35
- * @covers \PHPStan \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::__construct
36
- * @covers \PHPStan \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::getClass
35
+ * @covers \mglaman\PHPStanDrupal \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::__construct
36
+ * @covers \mglaman\PHPStanDrupal \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::getClass
37
37
*/
38
- public function testGetClass ()
38
+ public function testGetClass (): void
39
39
{
40
40
$ x = new EntityTypeManagerGetStorageDynamicReturnTypeExtension ([]);
41
41
self ::assertEquals ('Drupal\Core\Entity\EntityTypeManagerInterface ' , $ x ->getClass ());
@@ -44,10 +44,10 @@ public function testGetClass()
44
44
/**
45
45
* @dataProvider getEntityStorageProvider
46
46
*
47
- * @covers \PHPStan \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::__construct
48
- * @covers \PHPStan \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::getTypeFromMethodCall
47
+ * @covers \mglaman\PHPStanDrupal \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::__construct
48
+ * @covers \mglaman\PHPStanDrupal \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::getTypeFromMethodCall
49
49
*/
50
- public function testGetTypeFromMethodCall ($ entityType , $ storageClass )
50
+ public function testGetTypeFromMethodCall ($ entityType , $ storageClass ): void
51
51
{
52
52
// If we were passed a string, assume it is a class name to be mocked.
53
53
if (is_string ($ entityType )) {
@@ -106,10 +106,10 @@ public function getEntityStorageProvider(): \Iterator
106
106
}
107
107
108
108
/**
109
- * @covers \PHPStan \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::__construct
110
- * @covers \PHPStan \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::isMethodSupported
109
+ * @covers \mglaman\PHPStanDrupal \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::__construct
110
+ * @covers \mglaman\PHPStanDrupal \Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension::isMethodSupported
111
111
*/
112
- public function testIsMethodSupported ()
112
+ public function testIsMethodSupported (): void
113
113
{
114
114
$ x = new EntityTypeManagerGetStorageDynamicReturnTypeExtension ([]);
115
115
0 commit comments