mirror of
https://github.com/predis/predis.git
synced 2026-10-16 08:46:28 +00:00
Test suite: move tests for case-insensitive handling of commands names.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user