mirror of
https://github.com/predis/predis.git
synced 2026-10-15 00:07:17 +00:00
Upgrade to PHPUnit 3.5.
This commit is contained in:
@@ -48,9 +48,9 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
// need that kind of behaviour, you should use an instance of
|
||||
// Predis\MultiExecBlock.
|
||||
$this->assertTrue($this->redis->multi());
|
||||
$this->assertType('Predis\ResponseQueued', $this->redis->ping());
|
||||
$this->assertType('Predis\ResponseQueued', $this->redis->echo('hello'));
|
||||
$this->assertType('Predis\ResponseQueued', $this->redis->echo('redis'));
|
||||
$this->assertInstanceOf('Predis\ResponseQueued', $this->redis->ping());
|
||||
$this->assertInstanceOf('Predis\ResponseQueued', $this->redis->echo('hello'));
|
||||
$this->assertInstanceOf('Predis\ResponseQueued', $this->redis->echo('redis'));
|
||||
$this->assertEquals(array('PONG', 'hello', 'redis'), $this->redis->exec());
|
||||
|
||||
$this->assertTrue($this->redis->multi());
|
||||
@@ -64,8 +64,8 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function testDiscard() {
|
||||
$this->assertTrue($this->redis->multi());
|
||||
$this->assertType('Predis\ResponseQueued', $this->redis->set('foo', 'bar'));
|
||||
$this->assertType('Predis\ResponseQueued', $this->redis->set('hoge', 'piyo'));
|
||||
$this->assertInstanceOf('Predis\ResponseQueued', $this->redis->set('foo', 'bar'));
|
||||
$this->assertInstanceOf('Predis\ResponseQueued', $this->redis->set('hoge', 'piyo'));
|
||||
$this->assertEquals(true, $this->redis->discard());
|
||||
|
||||
// should throw an exception when trying to EXEC after a DISCARD
|
||||
@@ -2032,7 +2032,7 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
function testInfo() {
|
||||
$serverInfo = $this->redis->info();
|
||||
|
||||
$this->assertType('array', $serverInfo);
|
||||
$this->assertInternalType('array', $serverInfo);
|
||||
$this->assertNotNull($serverInfo['redis_version']);
|
||||
$this->assertGreaterThan(0, $serverInfo['uptime_in_seconds']);
|
||||
$this->assertGreaterThan(0, $serverInfo['total_connections_received']);
|
||||
|
||||
Reference in New Issue
Block a user