Skip to content

Commit 485d00c

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Use ::class keyword when possible
2 parents b170a2a + 19d5c34 commit 485d00c

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
@@ -89,7 +89,7 @@ public function testAttributes()
8989
$token->getAttribute('foobar');
9090
$this->fail('->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
9191
} catch (\Exception $e) {
92-
$this->assertInstanceOf('\InvalidArgumentException', $e, '->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
92+
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
9393
$this->assertEquals('This token has no "foobar" attribute.', $e->getMessage(), '->getAttribute() throws an \InvalidArgumentException exception when the attribute does not exist');
9494
}
9595
}

0 commit comments

Comments
 (0)