Skip to content

Commit f8d0a92

Browse files
committed
fix test
1 parent 73a2312 commit f8d0a92

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/RedisConnectionTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ public function testConnectionTimeout()
107107
sleep(1);
108108
$this->assertTrue($db->ping());
109109
sleep(3);
110-
if (method_exists($this, 'setExpectedException')) {
111-
$this->setExpectedException('\yii\redis\SocketException');
112-
} else {
113-
$this->expectException('\yii\redis\SocketException');
114-
}
110+
$this->expectException('\yii\redis\SocketException');
115111
$this->assertTrue($db->ping());
116112
}
117113

0 commit comments

Comments
 (0)