Commit 9a9e6c59 by Jordi Boggiano

PHPUnit compatibility fix

parent 351e871f
...@@ -68,7 +68,7 @@ class DwooConstraintStringEquals extends PHPUnit_Framework_Constraint ...@@ -68,7 +68,7 @@ class DwooConstraintStringEquals extends PHPUnit_Framework_Constraint
$this->target = preg_replace('#(\r\n|\r)#', "\n", $target); $this->target = preg_replace('#(\r\n|\r)#', "\n", $target);
} }
public function evaluate($other) public function evaluate($other, $description = '', $returnResult = false)
{ {
$this->other = preg_replace('#(\r\n|\r)#', "\n", $other); $this->other = preg_replace('#(\r\n|\r)#', "\n", $other);
return $this->target == $this->other; return $this->target == $this->other;
...@@ -89,7 +89,7 @@ class DwooConstraintPathEquals extends PHPUnit_Framework_Constraint ...@@ -89,7 +89,7 @@ class DwooConstraintPathEquals extends PHPUnit_Framework_Constraint
$this->target = preg_replace('#([\\\\/]{1,2})#', '/', $target); $this->target = preg_replace('#([\\\\/]{1,2})#', '/', $target);
} }
public function evaluate($other) public function evaluate($other, $description = '', $returnResult = false)
{ {
$this->other = preg_replace('#([\\\\/]{1,2})#', '/', $other); $this->other = preg_replace('#([\\\\/]{1,2})#', '/', $other);
return $this->target == $this->other; return $this->target == $this->other;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment