diff options
author | michael-grunder <michael.grunder@gmail.com> | 2018-01-25 21:59:40 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2018-01-25 21:59:40 +0300 |
commit | 2828c2f187900a5ddc450ce857b467d9e0b483ac (patch) | |
tree | cca29140077969fc42d20f2463680d676f846900 /tests | |
parent | d3b6c3c2bb10c5efb1b2f7bc7638e682ac8ec65f (diff) | |
parent | 815d2013b4bbd2509fbfe60e7d68b074e02b08b3 (diff) |
Merge branch 'issue.1287' into develop
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RedisClusterTest.php | 1 | ||||
-rw-r--r-- | tests/RedisTest.php | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/RedisClusterTest.php b/tests/RedisClusterTest.php index 4e0c15eb..eb364dbc 100644 --- a/tests/RedisClusterTest.php +++ b/tests/RedisClusterTest.php @@ -35,6 +35,7 @@ class Redis_Cluster_Test extends Redis_Test { public function testMultipleConnect() { return $this->markTestSkipped(); } public function testDoublePipeNoOp() { return $this->markTestSkipped(); } public function testSwapDB() { return $this->markTestSkipped(); } + public function testConnectException() { return $this->markTestSkipped(); } /* Load our seeds on construction */ public function __construct() { diff --git a/tests/RedisTest.php b/tests/RedisTest.php index 1f29ea62..4c0b7884 100644 --- a/tests/RedisTest.php +++ b/tests/RedisTest.php @@ -5162,5 +5162,14 @@ class Redis_Test extends TestSuite $this->assertEquals($this->redis->ping(), "+PONG"); } } + + public function testConnectException() { + $redis = new Redis(); + try { + $redis->connect('github.com', 6379, 0.01); + } catch (Exception $e) { + $this->assertTrue(strpos($e, "timed out") !== false); + } + } } ?> |