Upgrade to PHPUnit 3.5.

This commit is contained in:
Daniele Alessandri
2011-03-27 09:15:38 +02:00
parent b007b753f5
commit 0f751cabcb
5 changed files with 50 additions and 49 deletions
+6 -6
View File
@@ -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']);