Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2018-01-18 22:01:53 +0300
committermichael-grunder <michael.grunder@gmail.com>2018-01-18 22:01:53 +0300
commit03f77018cef9ff541ea9db26dd7a1bc45775abcb (patch)
treed67660f852b15848a64fd520d8a9f1a7bfabab28 /tests
parent84f1f28ba2a8db539f4cc98b7dd3bb6474007cf0 (diff)
Add a test for SWAPDB
Diffstat (limited to 'tests')
-rw-r--r--tests/RedisTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/RedisTest.php b/tests/RedisTest.php
index 2dafb581..c1d3b819 100644
--- a/tests/RedisTest.php
+++ b/tests/RedisTest.php
@@ -1904,6 +1904,10 @@ class Redis_Test extends TestSuite
}
public function testSwapDB() {
+ if (version_compare($this->version, "4.0.0", "lt")) {
+ $this->markTestSkipped();
+ }
+
$this->assertTrue($this->redis->swapdb(0, 1));
$this->assertTrue($this->redis->swapdb(0, 1));
}