Kaynağa Gözat

Remove additional test

CreateCommand and supportsCommand are the only two methods which need
to be changes, so test for only those two methods.
Jurian Sluiman 13 yıl önce
ebeveyn
işleme
0d28395aa0
1 değiştirilmiş dosya ile 5 ekleme ve 9 silme
  1. 5 9
      test/RedisCommandsTest.php

+ 5 - 9
test/RedisCommandsTest.php

@@ -2076,17 +2076,13 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
         $this->assertGreaterThan(0, $this->redis->lastsave());
         $this->assertGreaterThan(0, $this->redis->lastsave());
     }
     }
 
 
-    function testUppercaseCommands() {
-        $uppercase = $this->redis->INFO();
-        $lowercase = $this->redis->info();
+    function testMagicUppercase() {
+        $uppercase = $this->redis->getProfile()->supportsCommand('INFO');
+        $lowercase = $this->redis->getProfile()->supportsCommand('info');
         $this->assertEquals($uppercase, $lowercase);
         $this->assertEquals($uppercase, $lowercase);
 
 
-        $uppercase = $this->getProfile()->supportsCommand('INFO');
-        $lowercase = $this->getProfile()->supportsCommand('info');
-        $this->assertEquals($uppercase, $lowercase);
-
-        $uppercase = $this->getProfile()->createCommand('INFO');
-        $lowercase = $this->getProfile()->createCommand('info');
+        $uppercase = $this->redis->getProfile()->createCommand('INFO');
+        $lowercase = $this->redis->getProfile()->createCommand('info');
         $this->assertEquals($uppercase, $lowercase);
         $this->assertEquals($uppercase, $lowercase);
     }
     }
 }
 }