mirror of
https://github.com/predis/predis.git
synced 2026-08-24 22:59:24 +00:00
get phpunit running
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* Constraint that accepts arrays with the same elements but different order.
|
||||
*/
|
||||
class ArrayHasSameValuesConstraint extends \PHPUnit_Framework_Constraint
|
||||
class ArrayHasSameValuesConstraint extends \PHPUnit\Framework\Constraint\Constraint
|
||||
{
|
||||
protected $array;
|
||||
|
||||
@@ -27,7 +27,7 @@ class ArrayHasSameValuesConstraint extends \PHPUnit_Framework_Constraint
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function matches($other)
|
||||
public function matches($other): bool
|
||||
{
|
||||
if (count($this->array) !== count($other)) {
|
||||
return false;
|
||||
@@ -43,7 +43,7 @@ class ArrayHasSameValuesConstraint extends \PHPUnit_Framework_Constraint
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toString()
|
||||
public function toString(): string
|
||||
{
|
||||
return 'two arrays contain the same elements.';
|
||||
}
|
||||
@@ -51,7 +51,7 @@ class ArrayHasSameValuesConstraint extends \PHPUnit_Framework_Constraint
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function failureDescription($other)
|
||||
protected function failureDescription($other): string
|
||||
{
|
||||
return $this->toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user