Rename IServerProfile::registerCommand() to IServerProfile::defineCommand().

This commit is contained in:
Daniele Alessandri
2011-03-05 10:51:54 +01:00
parent 3681c1e622
commit f8844ef8b8
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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));
}