Remove code from the test for SLAVEOF.

This commit is contained in:
Daniele Alessandri
2011-04-24 10:03:23 +02:00
parent b4a90df812
commit b396eb3c48
-6
View File
@@ -2049,15 +2049,9 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
$masterPort = 80;
$this->assertTrue($this->redis->slaveof($masterHost, $masterPort));
$serverInfo = $this->redis->info();
$this->assertEquals('slave', $serverInfo['role']);
$this->assertEquals($masterHost, $serverInfo['master_host']);
$this->assertEquals($masterPort, $serverInfo['master_port']);
// slave of NO ONE, the implicit way
$this->assertTrue($this->redis->slaveof());
$serverInfo = $this->redis->info();
$this->assertEquals('master', $serverInfo['role']);
// slave of NO ONE, the explicit way
$this->assertTrue($this->redis->slaveof('NO ONE'));