mirror of
https://github.com/predis/predis.git
synced 2026-08-25 14:39:40 +00:00
Fix E_STRICT error messages.
This commit is contained in:
@@ -30,13 +30,15 @@ class ArrayHasSameValuesConstraint extends PHPUnit_Framework_Constraint
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function evaluate($other)
|
||||
public function evaluate($other, $description = '', $returnResult = FALSE)
|
||||
{
|
||||
$description = $description ?: 'Failed asserting that two arrays have the same elements.';
|
||||
|
||||
if (count($this->array) !== count($other)) {
|
||||
throw new PHPUnit_Framework_ExpectationFailedException('Failed asserting that two arrays have the same elements.');
|
||||
throw new PHPUnit_Framework_ExpectationFailedException($description);
|
||||
}
|
||||
if (array_diff($this->array, $other)) {
|
||||
throw new PHPUnit_Framework_ExpectationFailedException('Failed asserting that two arrays have the same elements.');
|
||||
throw new PHPUnit_Framework_ExpectationFailedException($description);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user