File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
/**
13
13
* SocketException indicates a socket connection failure in [[Connection]].
14
+ * @since 2.0.7
14
15
*/
15
16
class SocketException extends Exception
16
17
{
Original file line number Diff line number Diff line change @@ -93,9 +93,6 @@ public function testSerialize()
93
93
$ this ->assertTrue ($ db2 ->ping ());
94
94
}
95
95
96
- /**
97
- * @expectedException \yii\redis\SocketException
98
- */
99
96
public function testConnectionTimeout ()
100
97
{
101
98
$ db = $ this ->getConnection (false );
@@ -104,6 +101,7 @@ public function testConnectionTimeout()
104
101
sleep (1 );
105
102
$ this ->assertTrue ($ db ->ping ());
106
103
sleep (2 );
104
+ $ this ->expectException ('\yii\redis\SocketException ' );
107
105
$ this ->assertTrue ($ db ->ping ());
108
106
}
109
107
You can’t perform that action at this time.
0 commit comments