Skip to content

Commit 559c624

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Tests] Migrate data providers to static ones
1 parent 5bd7831 commit 559c624

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Controller/ContainerControllerResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function testExceptionWhenUsingRemovedControllerService()
204204
$resolver->getController($request);
205205
}
206206

207-
public function getUndefinedControllers()
207+
public static function getUndefinedControllers(): array
208208
{
209209
$tests = parent::getUndefinedControllers();
210210
$tests[0] = ['foo', \InvalidArgumentException::class, 'Controller "foo" does neither exist as service nor as class'];

Tests/Controller/ControllerResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function testGetControllerWithUndefinedController($controller, $exception
165165
$resolver->getController($request);
166166
}
167167

168-
public function getUndefinedControllers()
168+
public static function getUndefinedControllers()
169169
{
170170
$controller = new ControllerTest();
171171

0 commit comments

Comments
 (0)