Skip to content

Commit a453427

Browse files
committed
replace assertEmpty() with stricter assertions
1 parent 97175fc commit a453427

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/DataCollector/SecurityDataCollectorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testCollectWhenSecurityIsDisabled()
5454
$this->assertFalse($collector->supportsRoleHierarchy());
5555
$this->assertCount(0, $collector->getRoles());
5656
$this->assertCount(0, $collector->getInheritedRoles());
57-
$this->assertEmpty($collector->getUser());
57+
$this->assertSame('', $collector->getUser());
5858
$this->assertNull($collector->getFirewall());
5959
}
6060

@@ -73,7 +73,7 @@ public function testCollectWhenAuthenticationTokenIsNull()
7373
$this->assertTrue($collector->supportsRoleHierarchy());
7474
$this->assertCount(0, $collector->getRoles());
7575
$this->assertCount(0, $collector->getInheritedRoles());
76-
$this->assertEmpty($collector->getUser());
76+
$this->assertSame('', $collector->getUser());
7777
$this->assertNull($collector->getFirewall());
7878
}
7979

@@ -425,7 +425,7 @@ public function testGetVotersIfAccessDecisionManagerHasNoVoters()
425425

426426
$dataCollector->collect(new Request(), new Response());
427427

428-
$this->assertEmpty($dataCollector->getVoters());
428+
$this->assertSame([], $dataCollector->getVoters());
429429
}
430430

431431
public static function provideRoles(): array

0 commit comments

Comments
 (0)