File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use Psr \Container \ContainerInterface ;
15
15
use Psr \Log \LoggerInterface ;
16
+ use Symfony \Bridge \PhpUnit \ExpectDeprecationTrait ;
16
17
use Symfony \Component \DependencyInjection \Container ;
17
18
use Symfony \Component \HttpFoundation \Request ;
18
19
use Symfony \Component \HttpKernel \Controller \ContainerControllerResolver ;
19
20
20
21
class ContainerControllerResolverTest extends ControllerResolverTest
21
22
{
23
+ use ExpectDeprecationTrait;
24
+
22
25
/**
23
26
* @group legacy
24
- * @expectedDeprecation Since symfony/http-kernel 5.1: Referencing controllers with a single colon is deprecated. Use "foo::action" instead.
25
27
*/
26
28
public function testGetControllerServiceWithSingleColon ()
27
29
{
30
+ $ this ->expectDeprecation ('Since symfony/http-kernel 5.1: Referencing controllers with a single colon is deprecated. Use "foo::action" instead. ' );
31
+
28
32
$ service = new ControllerTestService ('foo ' );
29
33
30
34
$ container = $ this ->createMockContainer ();
You can’t perform that action at this time.
0 commit comments