Skip to content

Commit 19d5c34

Browse files
committed
Use ::class keyword when possible
1 parent affd69b commit 19d5c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Authentication/Token/AbstractTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function testAttributes()
134134
$token->getAttribute('foobar');
135135
$this->fail('->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
136136
} catch (\Exception $e) {
137-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
137+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
138138
$this->assertEquals('This token has no "foobar" attribute.', $e->getMessage(), '->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
139139
}
140140
}

0 commit comments

Comments
 (0)