Test suite: move tests for case-insensitive handling of commands names.

This commit is contained in:
Daniele Alessandri
2011-10-02 23:29:03 +02:00
parent c107d937fa
commit e070f83dc5
2 changed files with 12 additions and 10 deletions
+12
View File
@@ -152,6 +152,18 @@ class ClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
$this->assertInstanceOf($cmdClass, $profile->createCommand($cmdId));
}
function testServerProfile_CaseInsensitiveCommandsNames() {
$profile = $this->redis->getProfile();
$uppercase = $profile->supportsCommand('INFO');
$lowercase = $profile->supportsCommand('info');
$this->assertEquals($uppercase, $lowercase);
$uppercase = $profile->createCommand('INFO');
$lowercase = $profile->createCommand('info');
$this->assertEquals($uppercase, $lowercase);
}
/* Predis\ResponseQueued */