@@ -54,7 +54,7 @@ public function testCollectWhenSecurityIsDisabled()
54
54
$ this ->assertFalse ($ collector ->supportsRoleHierarchy ());
55
55
$ this ->assertCount (0 , $ collector ->getRoles ());
56
56
$ this ->assertCount (0 , $ collector ->getInheritedRoles ());
57
- $ this ->assertEmpty ( $ collector ->getUser ());
57
+ $ this ->assertSame ( '' , $ collector ->getUser ());
58
58
$ this ->assertNull ($ collector ->getFirewall ());
59
59
}
60
60
@@ -73,7 +73,7 @@ public function testCollectWhenAuthenticationTokenIsNull()
73
73
$ this ->assertTrue ($ collector ->supportsRoleHierarchy ());
74
74
$ this ->assertCount (0 , $ collector ->getRoles ());
75
75
$ this ->assertCount (0 , $ collector ->getInheritedRoles ());
76
- $ this ->assertEmpty ( $ collector ->getUser ());
76
+ $ this ->assertSame ( '' , $ collector ->getUser ());
77
77
$ this ->assertNull ($ collector ->getFirewall ());
78
78
}
79
79
@@ -425,7 +425,7 @@ public function testGetVotersIfAccessDecisionManagerHasNoVoters()
425
425
426
426
$ dataCollector ->collect (new Request (), new Response ());
427
427
428
- $ this ->assertEmpty ( $ dataCollector ->getVoters ());
428
+ $ this ->assertSame ([], $ dataCollector ->getVoters ());
429
429
}
430
430
431
431
public static function provideRoles (): array
0 commit comments