get phpunit running

This commit is contained in:
Till Krüss
2020-08-13 08:41:43 -07:00
parent 44f98e6635
commit 64937f725b
3 changed files with 9 additions and 9 deletions
@@ -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();
}