ProtocolExceptionTest.php 743 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Predis\Protocol;
  11. require_once __DIR__.'/../CommunicationExceptionTest.php';
  12. use Predis\CommunicationExceptionTest;
  13. use Predis\Connection\SingleConnectionInterface;
  14. /**
  15. *
  16. */
  17. class ProtocolExceptionTest extends CommunicationExceptionTest
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. protected function getException(SingleConnectionInterface $connection, $message, $code = 0, \Exception $inner = null)
  23. {
  24. return new ProtocolException($connection, $message, $code, $inner);
  25. }
  26. }