From bcf92a7548d69918f63c8b8a256a7f472f4384ac Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sun, 1 Dec 2013 15:27:42 +0100 Subject: [PATCH] [tests] Fix tests under PHP 5.3 due to another dumb mistake. Seriously, I am startint to hate PHP 5.3... --- tests/Predis/ClientTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Predis/ClientTest.php b/tests/Predis/ClientTest.php index b4a2a412..4642f22b 100644 --- a/tests/Predis/ClientTest.php +++ b/tests/Predis/ClientTest.php @@ -518,11 +518,11 @@ class ClientTest extends PredisTestCase $client = new Client($connection); - $this->assertSame('OK', $client->raw(['SET', 'foo', 'bar'])); - $this->assertSame('bar', $client->raw(['GET', 'foo'])); + $this->assertSame('OK', $client->raw(array('SET', 'foo', 'bar'))); + $this->assertSame('bar', $client->raw(array('GET', 'foo'))); $error = true; // $error is always populated by reference. - $this->assertSame('PONG', $client->raw(['PING'], $error)); + $this->assertSame('PONG', $client->raw(array('PING'), $error)); $this->assertFalse($error); } @@ -543,8 +543,8 @@ class ClientTest extends PredisTestCase $client = new Client($connection, array('prefix' => 'predis:')); - $this->assertSame('OK', $client->raw(['SET', 'foo', 'bar'])); - $this->assertSame('bar', $client->raw(['GET', 'foo'])); + $this->assertSame('OK', $client->raw(array('SET', 'foo', 'bar'))); + $this->assertSame('bar', $client->raw(array('GET', 'foo'))); } /** @@ -563,7 +563,7 @@ class ClientTest extends PredisTestCase $client = new Client($connection, array('exceptions' => true)); - $this->assertSame($message, $client->raw(['PING'], $error)); + $this->assertSame($message, $client->raw(array('PING'), $error)); $this->assertTrue($error); }