123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace Predis\Commands;
- use \PHPUnit_Framework_TestCase as StandardTestCase;
- class ConnectionQuitTest extends CommandTestCase
- {
-
- protected function getExpectedCommand()
- {
- return 'Predis\Commands\ConnectionQuit';
- }
-
- protected function getExpectedId()
- {
- return 'QUIT';
- }
-
- public function testFilterArguments()
- {
- $arguments = array();
- $expected = array();
- $command = $this->getCommand();
- $command->setArguments($arguments);
- $this->assertSame($expected, $command->getArguments());
- }
-
- public function testParseResponse()
- {
- $command = $this->getCommand();
- $this->assertTrue($command->parseResponse(true));
- }
-
- public function testReturnsTrueWhenClosingConnection()
- {
- $redis = $this->getClient();
- $command = $this->getCommand();
- $this->assertTrue($redis->executeCommand($command));
- }
- }
|