@@ -25,7 +25,7 @@ class ImportMappingDoctrineCommandTest extends TestCase
25
25
/** @var CommandTester|null */
26
26
private $ commandTester ;
27
27
28
- protected function setup ()
28
+ protected function setup () : void
29
29
{
30
30
$ this ->kernel = new ImportMappingTestingKernel ();
31
31
$ this ->kernel ->boot ();
@@ -40,7 +40,7 @@ protected function setup()
40
40
$ this ->commandTester = new CommandTester ($ command );
41
41
}
42
42
43
- protected function tearDown ()
43
+ protected function tearDown () : void
44
44
{
45
45
$ fs = new Filesystem ();
46
46
if ($ this ->kernel !== null ) {
@@ -52,7 +52,7 @@ protected function tearDown()
52
52
$ this ->commandTester = null ;
53
53
}
54
54
55
- public function testExecuteXmlWithBundle ()
55
+ public function testExecuteXmlWithBundle () : void
56
56
{
57
57
$ this ->commandTester ->execute (['name ' => 'ImportMappingTestFooBundle ' ]);
58
58
@@ -61,7 +61,7 @@ public function testExecuteXmlWithBundle()
61
61
$ this ->assertContains ('"Doctrine\Bundle\DoctrineBundle\Tests\Command\Entity\Product" ' , file_get_contents ($ expectedMetadataPath ), 'Metadata contains correct namespace ' );
62
62
}
63
63
64
- public function testExecuteAnnotationsWithBundle ()
64
+ public function testExecuteAnnotationsWithBundle () : void
65
65
{
66
66
$ this ->commandTester ->execute ([
67
67
'name ' => 'ImportMappingTestFooBundle ' ,
@@ -77,12 +77,12 @@ public function testExecuteAnnotationsWithBundle()
77
77
* @expectedException \InvalidArgumentException
78
78
* @expectedExceptionMessageRegExp /The --path option is required/
79
79
*/
80
- public function testExecuteThrowsExceptionWithNamespaceAndNoPath ()
80
+ public function testExecuteThrowsExceptionWithNamespaceAndNoPath () : void
81
81
{
82
82
$ this ->commandTester ->execute (['name ' => 'Some\Namespace ' ]);
83
83
}
84
84
85
- public function testExecuteXmlWithNamespace ()
85
+ public function testExecuteXmlWithNamespace () : void
86
86
{
87
87
$ this ->commandTester ->execute ([
88
88
'name ' => 'Some\Namespace\Entity ' ,
@@ -94,7 +94,7 @@ public function testExecuteXmlWithNamespace()
94
94
$ this ->assertContains ('"Some\Namespace\Entity\Product" ' , file_get_contents ($ expectedMetadataPath ), 'Metadata contains correct namespace ' );
95
95
}
96
96
97
- public function testExecuteAnnotationsWithNamespace ()
97
+ public function testExecuteAnnotationsWithNamespace () : void
98
98
{
99
99
$ this ->commandTester ->execute ([
100
100
'name ' => 'Some\Namespace\Entity ' ,
@@ -127,9 +127,9 @@ public function registerBundles() : iterable
127
127
];
128
128
}
129
129
130
- public function registerContainerConfiguration (LoaderInterface $ loader )
130
+ public function registerContainerConfiguration (LoaderInterface $ loader ) : void
131
131
{
132
- $ loader ->load (function (ContainerBuilder $ container ) {
132
+ $ loader ->load (function (ContainerBuilder $ container ) : void {
133
133
$ container ->loadFromExtension ('framework ' , ['secret ' => 'F00 ' ]);
134
134
135
135
$ container ->loadFromExtension ('doctrine ' , [
0 commit comments