mirror of
https://github.com/predis/predis.git
synced 2026-10-10 05:47:02 +00:00
Rename IServerProfile::registerCommand() to IServerProfile::defineCommand().
This commit is contained in:
@@ -153,7 +153,7 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$cmdClass = '\Predis\Commands\Multi';
|
||||
|
||||
$this->assertFalse($profile->supportsCommand($cmdId));
|
||||
$profile->registerCommand(new $cmdClass(), $cmdId);
|
||||
$profile->defineCommand(new $cmdClass(), $cmdId);
|
||||
$this->assertTrue($profile->supportsCommand($cmdId));
|
||||
$this->assertType($cmdClass, $profile->createCommand($cmdId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user