We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a2312 commit f8d0a92Copy full SHA for f8d0a92
tests/RedisConnectionTest.php
@@ -107,11 +107,7 @@ public function testConnectionTimeout()
107
sleep(1);
108
$this->assertTrue($db->ping());
109
sleep(3);
110
- if (method_exists($this, 'setExpectedException')) {
111
- $this->setExpectedException('\yii\redis\SocketException');
112
- } else {
113
- $this->expectException('\yii\redis\SocketException');
114
- }
+ $this->expectException('\yii\redis\SocketException');
115
116
}
117
0 commit comments