Files
predis/tests/Predis/Response/ResponseQueuedTest.php
T
Daniele Alessandri a8edc02eb6 Create the Predis\Response namespace.
All of the response interface, classes and exceptions have been moved
into this namespace.
2013-11-16 11:59:33 +01:00

52 lines
1.0 KiB
PHP

<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Response;
use \PHPUnit_Framework_TestCase as StandardTestCase;
/**
*
*/
class ResponseQueuedTest extends StandardTestCase
{
/**
* @group disconnected
*/
public function testResponseQueuedClass()
{
$queued = new ResponseQueued();
$this->assertInstanceOf('Predis\Response\ResponseObjectInterface', $queued);
}
/**
* @group disconnected
*/
public function testToString()
{
$queued = new ResponseQueued();
$this->assertEquals('QUEUED', (string) $queued);
}
/**
* @group disconnected
*/
public function testQueuedProperty()
{
$queued = new ResponseQueued();
$this->assertTrue(isset($queued->queued));
$this->assertTrue($queued->queued);
}
}