12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace Predis\Command\Redis;
- class SUBSTR_Test extends PredisCommandTestCase
- {
-
- protected function getExpectedCommand()
- {
- return 'Predis\Command\Redis\SUBSTR';
- }
-
- protected function getExpectedId()
- {
- return 'SUBSTR';
- }
-
- public function testFilterArguments()
- {
- $arguments = array('key', 5, 10);
- $expected = array('key', 5, 10);
- $command = $this->getCommand();
- $command->setArguments($arguments);
- $this->assertSame($expected, $command->getArguments());
- }
-
- public function testParseResponse()
- {
- $this->assertSame('substring', $this->getCommand()->parseResponse('substring'));
- }
- }
|