Rename Predis\Client::raw() to Predis\Client::executeRaw().

This is more consistent with Predis\Client::executeRaw() and its more
explicit since simply "raw" as a method name was a bit too vague even
despite being nicely short.
This commit is contained in:
Daniele Alessandri
2013-12-14 20:37:28 +01:00
parent fded76bca3
commit cbf015164c
5 changed files with 12 additions and 10 deletions
+6 -6
View File
@@ -518,11 +518,11 @@ class ClientTest extends PredisTestCase
$client = new Client($connection);
$this->assertSame('OK', $client->raw(array('SET', 'foo', 'bar')));
$this->assertSame('bar', $client->raw(array('GET', 'foo')));
$this->assertSame('OK', $client->executeRaw(array('SET', 'foo', 'bar')));
$this->assertSame('bar', $client->executeRaw(array('GET', 'foo')));
$error = true; // $error is always populated by reference.
$this->assertSame('PONG', $client->raw(array('PING'), $error));
$this->assertSame('PONG', $client->executeRaw(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(array('SET', 'foo', 'bar')));
$this->assertSame('bar', $client->raw(array('GET', 'foo')));
$this->assertSame('OK', $client->executeRaw(array('SET', 'foo', 'bar')));
$this->assertSame('bar', $client->executeRaw(array('GET', 'foo')));
}
/**
@@ -563,7 +563,7 @@ class ClientTest extends PredisTestCase
$client = new Client($connection, array('exceptions' => true));
$this->assertSame($message, $client->raw(array('PING'), $error));
$this->assertSame($message, $client->executeRaw(array('PING'), $error));
$this->assertTrue($error);
}