@@ -36,15 +36,15 @@ protected function setUp(): void
36
36
/**
37
37
* @dataProvider getArguments
38
38
*/
39
- public function testCommand ($ output , $ config )
39
+ public function testCommand ($ output , $ config ): void
40
40
{
41
41
$ this ->fs ->mkdir ($ output );
42
42
43
43
$ commandTester = new CommandTester (new GenerateTypesCommand ());
44
44
$ this ->assertEquals (0 , $ commandTester ->execute (['output ' => $ output , 'config ' => $ config ]));
45
45
}
46
46
47
- public function getArguments ()
47
+ public function getArguments (): array
48
48
{
49
49
return [
50
50
[__DIR__ .'/../../build/blog/ ' , __DIR__ .'/../config/blog.yaml ' ],
@@ -55,7 +55,7 @@ public function getArguments()
55
55
];
56
56
}
57
57
58
- public function testDoctrineCollection ()
58
+ public function testDoctrineCollection (): void
59
59
{
60
60
$ outputDir = __DIR__ .'/../../build/address-book ' ;
61
61
$ config = __DIR__ .'/../config/address-book.yaml ' ;
@@ -78,7 +78,7 @@ public function getFriends(): Collection
78
78
, $ person );
79
79
}
80
80
81
- public function testFluentMutators ()
81
+ public function testFluentMutators (): void
82
82
{
83
83
$ outputDir = __DIR__ .'/../../build/fluent-mutators ' ;
84
84
$ config = __DIR__ .'/../config/fluent-mutators.yaml ' ;
@@ -115,7 +115,7 @@ public function removeFriend(Person $friend): self
115
115
, $ person );
116
116
}
117
117
118
- public function testDoNotGenerateAccessorMethods ()
118
+ public function testDoNotGenerateAccessorMethods (): void
119
119
{
120
120
$ outputDir = __DIR__ .'/../../build/public-properties ' ;
121
121
$ config = __DIR__ .'/../config/public-properties.yaml ' ;
@@ -132,7 +132,7 @@ public function testDoNotGenerateAccessorMethods()
132
132
$ this ->assertNotContains ('function remove ' , $ person );
133
133
}
134
134
135
- public function testImplicitAndExplicitPropertyInheritance ()
135
+ public function testImplicitAndExplicitPropertyInheritance (): void
136
136
{
137
137
$ outputDir = __DIR__ .'/../../build/inherited-properties ' ;
138
138
$ config = __DIR__ .'/../config/inherited-properties.yaml ' ;
@@ -164,7 +164,7 @@ public function testImplicitAndExplicitPropertyInheritance()
164
164
$ this ->assertNotContains ('function setName( ' , $ webPage );
165
165
}
166
166
167
- public function testReadableWritable ()
167
+ public function testReadableWritable (): void
168
168
{
169
169
$ outputDir = __DIR__ .'/../../build/readable-writable ' ;
170
170
$ config = __DIR__ .'/../config/readable-writable.yaml ' ;
@@ -184,7 +184,7 @@ public function testReadableWritable()
184
184
$ this ->assertNotContains ('function removeFriend( ' , $ person );
185
185
}
186
186
187
- public function testGeneratedId ()
187
+ public function testGeneratedId (): void
188
188
{
189
189
$ outputDir = __DIR__ .'/../../build/generated-id ' ;
190
190
$ config = __DIR__ .'/../config/generated-id.yaml ' ;
@@ -219,7 +219,7 @@ public function getId(): ?int
219
219
$ this ->assertNotContains ('function setId( ' , $ person );
220
220
}
221
221
222
- public function testNonGeneratedId ()
222
+ public function testNonGeneratedId (): void
223
223
{
224
224
$ outputDir = __DIR__ .'/../../build/non-generated-id ' ;
225
225
$ config = __DIR__ .'/../config/non-generated-id.yaml ' ;
@@ -253,7 +253,7 @@ public function getId(): string
253
253
$ this ->assertContains ('public function setId(string $id): void ' , $ person );
254
254
}
255
255
256
- public function testGeneratedUuid ()
256
+ public function testGeneratedUuid (): void
257
257
{
258
258
$ outputDir = __DIR__ .'/../../build/generated-uuid ' ;
259
259
$ config = __DIR__ .'/../config/generated-uuid.yaml ' ;
@@ -289,7 +289,7 @@ public function getId(): ?string
289
289
$ this ->assertNotContains ('function setId( ' , $ person );
290
290
}
291
291
292
- public function testNonGeneratedUuid ()
292
+ public function testNonGeneratedUuid (): void
293
293
{
294
294
$ outputDir = __DIR__ .'/../../build/non-generated-uuid ' ;
295
295
$ config = __DIR__ .'/../config/non-generated-uuid.yaml ' ;
@@ -324,7 +324,7 @@ public function getId(): string
324
324
$ this ->assertContains ('public function setId(string $id): void ' , $ person );
325
325
}
326
326
327
- public function testDoNotGenerateId ()
327
+ public function testDoNotGenerateId (): void
328
328
{
329
329
$ outputDir = __DIR__ .'/../../build/no-id ' ;
330
330
$ config = __DIR__ .'/../config/no-id.yaml ' ;
@@ -341,7 +341,7 @@ public function testDoNotGenerateId()
341
341
$ this ->assertNotContains ('function setId ' , $ person );
342
342
}
343
343
344
- public function testNamespacesPrefix ()
344
+ public function testNamespacesPrefix (): void
345
345
{
346
346
$ outputDir = __DIR__ .'/../../build/namespaces-prefix ' ;
347
347
$ config = __DIR__ .'/../config/namespaces-prefix.yaml ' ;
@@ -356,7 +356,7 @@ public function testNamespacesPrefix()
356
356
$ this ->assertContains ('namespace App\Entity; ' , $ person );
357
357
}
358
358
359
- public function testNamespacesPrefixAutodetect ()
359
+ public function testNamespacesPrefixAutodetect (): void
360
360
{
361
361
$ outputDir = __DIR__ .'/../../build/namespaces-prefix-autodetect/ ' ;
362
362
@@ -378,7 +378,7 @@ public function testNamespacesPrefixAutodetect()
378
378
}
379
379
}
380
380
381
- public function testGeneratedEnum ()
381
+ public function testGeneratedEnum (): void
382
382
{
383
383
$ outputDir = __DIR__ .'/../../build/enum ' ;
384
384
$ config = __DIR__ .'/../config/enum.yaml ' ;
@@ -401,7 +401,7 @@ public function testGeneratedEnum()
401
401
$ this ->assertNotContains ('function setId( ' , $ gender );
402
402
}
403
403
404
- public function testSupersededProperties ()
404
+ public function testSupersededProperties (): void
405
405
{
406
406
$ outputDir = __DIR__ .'/../../build/superseded-properties ' ;
407
407
$ config = __DIR__ .'/../config/superseded-properties.yaml ' ;
0 commit comments