1919
2020final class CacheFlushCommandTest extends TestCase
2121{
22- public function testClearsAProvider (): void
22+ public function testClearsAProvider ()
2323 {
2424 $ pool = new ArrayCachePool ();
2525 $ pool ->save ($ pool ->getItem ('key ' )->set ('value ' ));
@@ -35,7 +35,7 @@ public function testClearsAProvider(): void
3535 self ::assertFalse ($ pool ->hasItem ('key ' ));
3636 }
3737
38- public function testClearsAPrivateConfiguredProviderAfterCompilation (): void
38+ public function testClearsAPrivateConfiguredProviderAfterCompilation ()
3939 {
4040 $ container = new ContainerBuilder ();
4141 $ container ->setParameter ('cache.provider_service_ids ' , ['cache.pool ' ]);
@@ -59,7 +59,7 @@ public function testClearsAPrivateConfiguredProviderAfterCompilation(): void
5959 self ::assertSame (Command::SUCCESS , $ status );
6060 }
6161
62- public function testOnlyExposesPublicAliasesForTaggedProvidersAfterCompilation (): void
62+ public function testOnlyExposesPublicAliasesForTaggedProvidersAfterCompilation ()
6363 {
6464 $ container = new ContainerBuilder ();
6565 $ container ->setParameter ('cache.provider_service_ids ' , []);
@@ -92,7 +92,7 @@ public function testOnlyExposesPublicAliasesForTaggedProvidersAfterCompilation()
9292 ]));
9393 }
9494
95- public function testInvalidatesTheTagForABuiltInIntegration (): void
95+ public function testInvalidatesTheTagForABuiltInIntegration ()
9696 {
9797 $ pool = new ArrayCachePool ();
9898 $ router = $ pool ->getItem ('router ' )->set ('router ' )->setTags (['router ' ]);
@@ -109,7 +109,7 @@ public function testInvalidatesTheTagForABuiltInIntegration(): void
109109 self ::assertTrue ($ pool ->hasItem ('session ' ));
110110 }
111111
112- public function testRejectsUnknownTypes (): void
112+ public function testRejectsUnknownTypes ()
113113 {
114114 $ tester = $ this ->tester (new ContainerBuilder ());
115115
@@ -119,7 +119,7 @@ public function testRejectsUnknownTypes(): void
119119 self ::assertStringContainsString ('Unknown cache type "unknown" ' , $ tester ->getDisplay ());
120120 }
121121
122- public function testProviderRequiresAnExistingService (): void
122+ public function testProviderRequiresAnExistingService ()
123123 {
124124 $ tester = $ this ->tester (new ContainerBuilder ());
125125
@@ -129,7 +129,7 @@ public function testProviderRequiresAnExistingService(): void
129129 self ::assertStringContainsString ('Pass a cache pool service ID ' , $ tester ->getDisplay ());
130130 }
131131
132- public function testProviderRejectsServicesThatAreNotPools (): void
132+ public function testProviderRejectsServicesThatAreNotPools ()
133133 {
134134 $ container = new ContainerBuilder ();
135135 $ container ->set ('not_a_pool ' , new \stdClass ());
@@ -142,7 +142,7 @@ public function testProviderRejectsServicesThatAreNotPools(): void
142142 self ::assertSame (Command::FAILURE , $ status );
143143 }
144144
145- public function testClearsANonTaggableBuiltInPool (): void
145+ public function testClearsANonTaggableBuiltInPool ()
146146 {
147147 $ inner = new ArrayCachePool ();
148148 $ pool = new TraceableCachePool ($ inner , 'cache.pool ' );
@@ -156,7 +156,7 @@ public function testClearsANonTaggableBuiltInPool(): void
156156 self ::assertFalse ($ inner ->hasItem ('key ' ));
157157 }
158158
159- public function testFailsForInvalidBuiltInConfiguration (): void
159+ public function testFailsForInvalidBuiltInConfiguration ()
160160 {
161161 $ container = new ContainerBuilder ();
162162 self ::assertSame (
@@ -165,15 +165,15 @@ public function testFailsForInvalidBuiltInConfiguration(): void
165165 );
166166 }
167167
168- public function testMissingBuiltInConfigurationIsAlreadyClear (): void
168+ public function testMissingBuiltInConfigurationIsAlreadyClear ()
169169 {
170170 self ::assertSame (
171171 Command::SUCCESS ,
172172 $ this ->tester (new ContainerBuilder ())->execute (['type ' => 'router ' ]),
173173 );
174174 }
175175
176- public function testRunsTheSymfonyCacheClearCommand (): void
176+ public function testRunsTheSymfonyCacheClearCommand ()
177177 {
178178 $ tester = $ this ->tester (new ContainerBuilder (), new class ('cache:clear ' ) extends Command {
179179 protected function execute (\Symfony \Component \Console \Input \InputInterface $ input , \Symfony \Component \Console \Output \OutputInterface $ output ): int
@@ -190,23 +190,23 @@ protected function execute(\Symfony\Component\Console\Input\InputInterface $inpu
190190 self ::assertStringContainsString ('cleared ' , $ tester ->getDisplay ());
191191 }
192192
193- public function testSymfonyClearFailsWhenTheCommandIsUnavailable (): void
193+ public function testSymfonyClearFailsWhenTheCommandIsUnavailable ()
194194 {
195195 self ::assertSame (
196196 Command::FAILURE ,
197197 $ this ->tester (new ContainerBuilder ())->execute (['type ' => 'symfony ' ]),
198198 );
199199 }
200200
201- public function testDecliningTheInteractivePromptDoesNothing (): void
201+ public function testDecliningTheInteractivePromptDoesNothing ()
202202 {
203203 $ tester = $ this ->tester (new ContainerBuilder ());
204204 $ tester ->setInputs (['no ' ]);
205205
206206 self ::assertSame (Command::SUCCESS , $ tester ->execute ([]));
207207 }
208208
209- public function testConfirmingTheInteractivePromptClearsEverything (): void
209+ public function testConfirmingTheInteractivePromptClearsEverything ()
210210 {
211211 $ tester = $ this ->tester (new ContainerBuilder (), new class ('cache:clear ' ) extends Command {
212212 protected function execute (\Symfony \Component \Console \Input \InputInterface $ input , \Symfony \Component \Console \Output \OutputInterface $ output ): int
@@ -219,7 +219,7 @@ protected function execute(\Symfony\Component\Console\Input\InputInterface $inpu
219219 self ::assertSame (Command::SUCCESS , $ tester ->execute ([]));
220220 }
221221
222- public function testClearAllPropagatesFailures (): void
222+ public function testClearAllPropagatesFailures ()
223223 {
224224 $ container = new ContainerBuilder ();
225225 self ::assertSame (
0 commit comments