Skip to content

Commit 728df4f

Browse files
committed
Use ::class keyword when possible
1 parent 8f585d0 commit 728df4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Store/FlockStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function getStore(): PersistingStoreInterface
3434

3535
public function testConstructWhenRepositoryCannotBeCreated()
3636
{
37-
$this->expectException('Symfony\Component\Lock\Exception\InvalidArgumentException');
37+
$this->expectException(\Symfony\Component\Lock\Exception\InvalidArgumentException::class);
3838
$this->expectExceptionMessage('The FlockStore directory "/a/b/c/d/e" does not exists and cannot be created.');
3939
if (!getenv('USER') || 'root' === getenv('USER')) {
4040
$this->markTestSkipped('This test will fail if run under superuser');
@@ -45,7 +45,7 @@ public function testConstructWhenRepositoryCannotBeCreated()
4545

4646
public function testConstructWhenRepositoryIsNotWriteable()
4747
{
48-
$this->expectException('Symfony\Component\Lock\Exception\InvalidArgumentException');
48+
$this->expectException(\Symfony\Component\Lock\Exception\InvalidArgumentException::class);
4949
$this->expectExceptionMessage('The FlockStore directory "/" is not writable.');
5050
if (!getenv('USER') || 'root' === getenv('USER')) {
5151
$this->markTestSkipped('This test will fail if run under superuser');

0 commit comments

Comments
 (0)