PhpRedisLockingUnitTestCase.test 660 B

123456789101112131415161718192021222324252627
  1. <?php
  2. if (!class_exists('Redis_Tests_Lock_LockingUnitTestCase')) {
  3. require_once(__DIR__ . '/LockingUnitTestCase.php');
  4. }
  5. class Redis_Tests_Lock_PhpRedisLockingUnitTestCase extends Redis_Tests_Lock_LockingUnitTestCase
  6. {
  7. public static function getInfo()
  8. {
  9. return array(
  10. 'name' => 'PhpRedis Redis locking',
  11. 'description' => 'Ensure that Redis locking feature is working OK.',
  12. 'group' => 'Redis',
  13. );
  14. }
  15. protected function getLockBackendClass()
  16. {
  17. return 'Redis_Lock_PhpRedis';
  18. }
  19. protected function getClientInterface()
  20. {
  21. return 'PhpRedis';
  22. }
  23. }