소스 검색

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

Daniele Alessandri 12 년 전
부모
커밋
b2e0dc62fe
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      tests/PHPUnit/CommandTestCase.php

+ 3 - 1
tests/PHPUnit/CommandTestCase.php

@@ -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}"
             );