mirror of
https://github.com/predis/predis.git
synced 2026-08-23 04:31:44 +00:00
Simplify Predis\Profiles\ServerProfile::defineCommand().
This commit is contained in:
@@ -153,7 +153,7 @@ class ClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$cmdClass = '\Predis\Commands\Multi';
|
||||
|
||||
$this->assertFalse($profile->supportsCommand($cmdId));
|
||||
$profile->defineCommand(new $cmdClass(), $cmdId);
|
||||
$profile->defineCommand($cmdId, new $cmdClass());
|
||||
$this->assertTrue($profile->supportsCommand($cmdId));
|
||||
$this->assertInstanceOf($cmdClass, $profile->createCommand($cmdId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user