Skip to content

Commit 77495a2

Browse files
committed
cleanup
1 parent 914d4ee commit 77495a2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

SocketException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* SocketException indicates a socket connection failure in [[Connection]].
14+
* @since 2.0.7
1415
*/
1516
class SocketException extends Exception
1617
{

tests/RedisConnectionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ public function testSerialize()
9393
$this->assertTrue($db2->ping());
9494
}
9595

96-
/**
97-
* @expectedException \yii\redis\SocketException
98-
*/
9996
public function testConnectionTimeout()
10097
{
10198
$db = $this->getConnection(false);
@@ -104,6 +101,7 @@ public function testConnectionTimeout()
104101
sleep(1);
105102
$this->assertTrue($db->ping());
106103
sleep(2);
104+
$this->expectException('\yii\redis\SocketException');
107105
$this->assertTrue($db->ping());
108106
}
109107

0 commit comments

Comments
 (0)