ResponseQueuedTest.php 1008 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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;
  11. use \PHPUnit_Framework_TestCase as StandardTestCase;
  12. /**
  13. *
  14. */
  15. class ResponseQueuedTest extends StandardTestCase
  16. {
  17. /**
  18. * @group disconnected
  19. */
  20. public function testResponseQueuedClass()
  21. {
  22. $queued = new ResponseQueued();
  23. $this->assertInstanceOf('Predis\IReplyObject', $queued);
  24. }
  25. /**
  26. * @group disconnected
  27. */
  28. public function testToString()
  29. {
  30. $queued = new ResponseQueued();
  31. $this->assertEquals('QUEUED', (string) $queued);
  32. }
  33. /**
  34. * @group disconnected
  35. */
  36. public function testQueuedProperty()
  37. {
  38. $queued = new ResponseQueued();
  39. $this->assertTrue(isset($queued->queued));
  40. $this->assertTrue($queued->queued);
  41. }
  42. }