[tests] Fix a couple of glitches in our base PHPUnit classes.

This commit is contained in:
Daniele Alessandri
2013-12-22 14:06:39 +01:00
parent 728d9dceb5
commit 7ebb8a8b42
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
protected function executeOnProfileVersion($expectedVersion, $operator, $callback)
{
$profile = $this->getProfile();
$comparation = version_compare($profile->getVersion(), $expectedVersion);
$comparation = version_compare($version = $profile->getVersion(), $expectedVersion);
if ($match = eval("return $comparation $operator 0;")) {
call_user_func($callback, $this, $version);
+1 -1
View File
@@ -26,7 +26,7 @@ class RedisCommandConstraint extends PHPUnit_Framework_Constraint
{
if ($command instanceof CommandInterface) {
$this->commandID = strtoupper($command->getId());
$this->arguments = $arguments ?: $commant->getArguments();
$this->arguments = $arguments ?: $command->getArguments();
} else {
$this->commandID = strtoupper($command);
$this->arguments = $arguments;