Skip to content

Commit 0afa966

Browse files
committed
Use ::class keyword when possible
1 parent 3eb4b8c commit 0afa966

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/Session/SessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testSetIdAfterStart()
8989
} catch (\Exception $e) {
9090
}
9191

92-
$this->assertInstanceOf('\LogicException', $e);
92+
$this->assertInstanceOf(\LogicException::class, $e);
9393
}
9494

9595
public function testSetName()

Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,6 @@ public function testGetConnection()
136136
$method = new \ReflectionMethod($this->storage, 'getMemcached');
137137
$method->setAccessible(true);
138138

139-
$this->assertInstanceOf('\Memcached', $method->invoke($this->storage));
139+
$this->assertInstanceOf(\Memcached::class, $method->invoke($this->storage));
140140
}
141141
}

Tests/Session/Storage/Handler/PdoSessionHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public function testGetConnection()
298298
$method = new \ReflectionMethod($storage, 'getConnection');
299299
$method->setAccessible(true);
300300

301-
$this->assertInstanceOf('\PDO', $method->invoke($storage));
301+
$this->assertInstanceOf(\PDO::class, $method->invoke($storage));
302302
}
303303

304304
public function testGetConnectionConnectsIfNeeded()
@@ -308,7 +308,7 @@ public function testGetConnectionConnectsIfNeeded()
308308
$method = new \ReflectionMethod($storage, 'getConnection');
309309
$method->setAccessible(true);
310310

311-
$this->assertInstanceOf('\PDO', $method->invoke($storage));
311+
$this->assertInstanceOf(\PDO::class, $method->invoke($storage));
312312
}
313313

314314
/**

0 commit comments

Comments
 (0)