[tests] Fix dumb mistake when running tests with older profiles.

This commit is contained in:
Daniele Alessandri
2013-11-30 20:06:37 +01:00
parent f7ff65e0fa
commit b2e0dc62fe
+3 -1
View File
@@ -54,7 +54,9 @@ abstract class CommandTestCase extends PredisTestCase
*/
public function getClient($flushdb = true)
{
if (!$this->getProfile()->supportsCommand($id = $this->getExpectedId())) {
$profile = $this->getProfile();
if (!$profile->supportsCommand($id = $this->getExpectedId())) {
$this->markTestSkipped(
"The profile {$profile->getVersion()} does not support command {$id}"
);