12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace Predis\Command;
- class ConnectionQuitTest extends PredisCommandTestCase
- {
-
- protected function getExpectedCommand()
- {
- return 'Predis\Command\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));
- }
- }
|