mirror of
https://github.com/predis/predis.git
synced 2026-08-27 18:51:07 +00:00
b253bdc41e
We now have a base test case class for Predis (namely PredisTestCase) grouping various commonly used utility methods shared by all of the tests in the suite, greatly improving reusability.
52 lines
986 B
PHP
52 lines
986 B
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 PredisTestCase;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class StatusQueuedTest extends PredisTestCase
|
|
{
|
|
/**
|
|
* @group disconnected
|
|
*/
|
|
public function testResponseQueuedClass()
|
|
{
|
|
$queued = new StatusQueued();
|
|
|
|
$this->assertInstanceOf('Predis\Response\ObjectInterface', $queued);
|
|
}
|
|
|
|
/**
|
|
* @group disconnected
|
|
*/
|
|
public function testToString()
|
|
{
|
|
$queued = new StatusQueued();
|
|
|
|
$this->assertEquals('QUEUED', (string) $queued);
|
|
}
|
|
|
|
/**
|
|
* @group disconnected
|
|
*/
|
|
public function testQueuedProperty()
|
|
{
|
|
$queued = new StatusQueued();
|
|
|
|
$this->assertTrue(isset($queued->queued));
|
|
$this->assertTrue($queued->queued);
|
|
}
|
|
}
|