mirror of
https://github.com/predis/predis.git
synced 2026-10-14 07:47:49 +00:00
Change method to undefine commands in factory.
The previous implementation was not good because we were exposing in the public API an internal implementation detail of the base factory class, furthermore it made Predis\Command\Factory::define() confusing. Having a separate method to undefine commands in the factory is self-explanatory. We also changed `Predis\Configuration\Option\Commands` accordingly when a dictionary of $commandID => $classCommand is passed to the "commands" client option and $classCommand is NULL. A few minor changes (mostly cosmetic or documentation) were applied too. From feedback to PR #644.
This commit is contained in:
@@ -702,7 +702,7 @@ class ClientTest extends PredisTestCase
|
||||
public function testThrowsExceptionOnNonRegisteredRedisCommand()
|
||||
{
|
||||
$this->expectException('Predis\ClientException');
|
||||
$this->expectExceptionMessage("Command 'INVALIDCOMMAND' is not a registered Redis command");
|
||||
$this->expectExceptionMessage("Command `INVALIDCOMMAND` is not a registered Redis command");
|
||||
|
||||
$client = new Client();
|
||||
$client->invalidCommand();
|
||||
|
||||
Reference in New Issue
Block a user