17
17
18
18
class TwigComponentDebugCommandTest extends KernelTestCase
19
19
{
20
- public function testWithNoComponent (): void
20
+ public function testWithNoComponent ()
21
21
{
22
22
$ commandTester = $ this ->createCommandTester ();
23
23
$ commandTester ->execute ([]);
@@ -32,7 +32,7 @@ public function testWithNoComponent(): void
32
32
$ this ->assertStringContainsString ('Type ' , $ display );
33
33
}
34
34
35
- public function testWithNoMatchComponent (): void
35
+ public function testWithNoMatchComponent ()
36
36
{
37
37
$ commandTester = $ this ->createCommandTester ();
38
38
$ result = $ commandTester ->execute (['name ' => 'NoMatchComponent ' ]);
@@ -41,7 +41,7 @@ public function testWithNoMatchComponent(): void
41
41
$ this ->assertStringContainsString ('Unknown component "NoMatchComponent". ' , $ commandTester ->getDisplay ());
42
42
}
43
43
44
- public function testNotComponentsIsNotListed (): void
44
+ public function testNotComponentsIsNotListed ()
45
45
{
46
46
$ commandTester = $ this ->createCommandTester ();
47
47
$ result = $ commandTester ->execute (['name ' => 'NotAComponent ' ]);
@@ -50,7 +50,7 @@ public function testNotComponentsIsNotListed(): void
50
50
$ this ->assertStringContainsString ('Unknown component "NotAComponent". ' , $ commandTester ->getDisplay ());
51
51
}
52
52
53
- public function testWithOnePartialMatchComponent (): void
53
+ public function testWithOnePartialMatchComponent ()
54
54
{
55
55
$ commandTester = $ this ->createCommandTester ();
56
56
$ commandTester ->setInputs ([]);
@@ -64,7 +64,7 @@ public function testWithOnePartialMatchComponent(): void
64
64
$ this ->assertStringContainsString ('Component \\DivComponentNoPass ' , $ commandTester ->getDisplay ());
65
65
}
66
66
67
- public function testWithMultiplePartialMatchComponent (): void
67
+ public function testWithMultiplePartialMatchComponent ()
68
68
{
69
69
$ commandTester = $ this ->createCommandTester ();
70
70
$ commandTester ->setInputs (['DivComponent5 ' ]);
@@ -82,7 +82,7 @@ public function testWithMultiplePartialMatchComponent(): void
82
82
$ this ->assertStringNotContainsString ('Component \\DivComponent6 ' , $ commandTester ->getDisplay ());
83
83
}
84
84
85
- public function testComponentWithClass (): void
85
+ public function testComponentWithClass ()
86
86
{
87
87
$ commandTester = $ this ->createCommandTester ();
88
88
$ commandTester ->execute (['name ' => 'BasicComponent ' ]);
@@ -97,7 +97,7 @@ public function testComponentWithClass(): void
97
97
$ this ->assertStringContainsString ('components/BasicComponent.html.twig ' , $ display );
98
98
}
99
99
100
- public function testComponentWithClassPropertiesAndCustomName (): void
100
+ public function testComponentWithClassPropertiesAndCustomName ()
101
101
{
102
102
$ commandTester = $ this ->createCommandTester ();
103
103
$ commandTester ->execute (['name ' => 'component_c ' ]);
@@ -116,7 +116,7 @@ public function testComponentWithClassPropertiesAndCustomName(): void
116
116
$ this ->assertStringContainsString ('Mount ' , $ display );
117
117
}
118
118
119
- public function testComponentWithClassPropertiesCustomNameAndCustomTemplate (): void
119
+ public function testComponentWithClassPropertiesCustomNameAndCustomTemplate ()
120
120
{
121
121
$ commandTester = $ this ->createCommandTester ();
122
122
$ commandTester ->execute (['name ' => 'component_b ' ]);
@@ -133,7 +133,7 @@ public function testComponentWithClassPropertiesCustomNameAndCustomTemplate(): v
133
133
$ this ->assertStringContainsString ('string $postValue ' , $ display );
134
134
}
135
135
136
- public function testWithAnonymousComponent (): void
136
+ public function testWithAnonymousComponent ()
137
137
{
138
138
$ commandTester = $ this ->createCommandTester ();
139
139
$ commandTester ->execute (['name ' => 'Button ' ]);
@@ -150,7 +150,7 @@ public function testWithAnonymousComponent(): void
150
150
$ this ->assertStringContainsString ('primary = true ' , $ display );
151
151
}
152
152
153
- public function testWithBundleAnonymousComponent (): void
153
+ public function testWithBundleAnonymousComponent ()
154
154
{
155
155
$ commandTester = $ this ->createCommandTester ();
156
156
$ commandTester ->execute (['name ' => 'Acme:Button ' ]);
@@ -165,7 +165,7 @@ public function testWithBundleAnonymousComponent(): void
165
165
$ this ->assertStringContainsString ('Anonymous ' , $ display );
166
166
}
167
167
168
- public function testWithBundleAnonymousComponentSubDir (): void
168
+ public function testWithBundleAnonymousComponentSubDir ()
169
169
{
170
170
$ commandTester = $ this ->createCommandTester ();
171
171
$ commandTester ->execute (['name ' => 'Acme:Table:Header ' ]);
@@ -180,7 +180,7 @@ public function testWithBundleAnonymousComponentSubDir(): void
180
180
$ this ->assertStringContainsString ('Anonymous ' , $ display );
181
181
}
182
182
183
- public function testWithoutPublicProps (): void
183
+ public function testWithoutPublicProps ()
184
184
{
185
185
$ commandTester = $ this ->createCommandTester ();
186
186
$ commandTester ->execute (['name ' => 'no_public_props ' ]);
@@ -194,7 +194,7 @@ public function testWithoutPublicProps(): void
194
194
$ this ->assertStringNotContainsString ('prop1 ' , $ display );
195
195
}
196
196
197
- public function testWithExposedVariables (): void
197
+ public function testWithExposedVariables ()
198
198
{
199
199
$ commandTester = $ this ->createCommandTester ();
200
200
$ commandTester ->execute (['name ' => 'with_exposed_variables ' ]);
@@ -212,7 +212,7 @@ public function testWithExposedVariables(): void
212
212
$ this ->assertStringNotContainsString ('prop3 ' , $ display );
213
213
}
214
214
215
- public function testWithUnionTypeProps (): void
215
+ public function testWithUnionTypeProps ()
216
216
{
217
217
$ commandTester = $ this ->createCommandTester ();
218
218
$ commandTester ->execute (['name ' => 'union_type_props ' ]);
0 commit comments