123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace Predis\Command;
- class ConnectionPingTest extends PredisCommandTestCase
- {
-
- protected function getExpectedCommand()
- {
- return 'Predis\Command\ConnectionPing';
- }
-
- protected function getExpectedId()
- {
- return 'PING';
- }
-
- 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('PONG'));
- }
-
- public function testAlwaysReturnsTrue()
- {
- $redis = $this->getClient();
- $this->assertTrue($redis->ping());
- }
- }
|