瀏覽代碼

[tests] Fix assertion.

PHPUnit_Util_Type::export() has been removed a while ago...
Daniele Alessandri 8 年之前
父節點
當前提交
18ae294864
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tests/PHPUnit/RedisCommandConstraint.php

+ 3 - 1
tests/PHPUnit/RedisCommandConstraint.php

@@ -10,6 +10,7 @@
  */
 
 use Predis\Command\CommandInterface;
+use SebastianBergmann\Exporter\Exporter;
 
 /**
  * Constraint that verifies a redis command.
@@ -72,6 +73,7 @@ class RedisCommandConstraint extends \PHPUnit_Framework_Constraint
      */
     public function toString()
     {
+        $exporter = new Exporter();
         $string = 'is a Redis command';
 
         if ($this->commandID) {
@@ -80,7 +82,7 @@ class RedisCommandConstraint extends \PHPUnit_Framework_Constraint
 
         if ($this->arguments) {
             $string .= " and the following arguments:\n\n";
-            $string .= \PHPUnit_Util_Type::export($this->arguments);
+            $string .= $exporter->export($this->arguments);
         }
 
         return $string;