123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace Predis\Commands;
- use \PHPUnit_Framework_TestCase as StandardTestCase;
- class ServerLastSaveTest extends CommandTestCase
- {
-
- protected function getExpectedCommand()
- {
- return 'Predis\Commands\ServerLastSave';
- }
-
- protected function getExpectedId()
- {
- return 'LASTSAVE';
- }
-
- public function testFilterArguments()
- {
- $command = $this->getCommand();
- $command->setArguments(array());
- $this->assertSame(array(), $command->getArguments());
- }
-
- public function testParseResponse()
- {
- $this->assertSame(100, $this->getCommand()->parseResponse(100));
- }
-
- public function testReturnsIntegerValue()
- {
- $redis = $this->getClient();
- $this->assertInternalType('integer', $redis->lastsave());
- }
- }
|