@@ -54,7 +54,7 @@ public function testNoExeptionIfAllDependenciesArePresent()
54
54
55
55
public function testExceptionIfTheTokenStorageServiceIsNotPresent ()
56
56
{
57
- $ this ->expectException (' Symfony\Component\DependencyInjection\Exception\LogicException ' );
57
+ $ this ->expectException (\ Symfony \Component \DependencyInjection \Exception \LogicException::class );
58
58
$ this ->expectExceptionMessage ('The "security.token_storage" service is needed to be able to use the workflow guard listener. ' );
59
59
$ this ->container ->setParameter ('workflow.has_guard_listeners ' , true );
60
60
$ this ->container ->register ('security.authorization_checker ' , AuthorizationCheckerInterface::class);
@@ -66,7 +66,7 @@ public function testExceptionIfTheTokenStorageServiceIsNotPresent()
66
66
67
67
public function testExceptionIfTheAuthorizationCheckerServiceIsNotPresent ()
68
68
{
69
- $ this ->expectException (' Symfony\Component\DependencyInjection\Exception\LogicException ' );
69
+ $ this ->expectException (\ Symfony \Component \DependencyInjection \Exception \LogicException::class );
70
70
$ this ->expectExceptionMessage ('The "security.authorization_checker" service is needed to be able to use the workflow guard listener. ' );
71
71
$ this ->container ->setParameter ('workflow.has_guard_listeners ' , true );
72
72
$ this ->container ->register ('security.token_storage ' , TokenStorageInterface::class);
@@ -78,7 +78,7 @@ public function testExceptionIfTheAuthorizationCheckerServiceIsNotPresent()
78
78
79
79
public function testExceptionIfTheAuthenticationTrustResolverServiceIsNotPresent ()
80
80
{
81
- $ this ->expectException (' Symfony\Component\DependencyInjection\Exception\LogicException ' );
81
+ $ this ->expectException (\ Symfony \Component \DependencyInjection \Exception \LogicException::class );
82
82
$ this ->expectExceptionMessage ('The "security.authentication.trust_resolver" service is needed to be able to use the workflow guard listener. ' );
83
83
$ this ->container ->setParameter ('workflow.has_guard_listeners ' , true );
84
84
$ this ->container ->register ('security.token_storage ' , TokenStorageInterface::class);
@@ -90,7 +90,7 @@ public function testExceptionIfTheAuthenticationTrustResolverServiceIsNotPresent
90
90
91
91
public function testExceptionIfTheRoleHierarchyServiceIsNotPresent ()
92
92
{
93
- $ this ->expectException (' Symfony\Component\DependencyInjection\Exception\LogicException ' );
93
+ $ this ->expectException (\ Symfony \Component \DependencyInjection \Exception \LogicException::class );
94
94
$ this ->expectExceptionMessage ('The "security.role_hierarchy" service is needed to be able to use the workflow guard listener. ' );
95
95
$ this ->container ->setParameter ('workflow.has_guard_listeners ' , true );
96
96
$ this ->container ->register ('security.token_storage ' , TokenStorageInterface::class);
0 commit comments