public function PHPUnit_Framework_Comparator_Array::accepts

Returns whether the comparator can compare two values.

Parameters

mixed $expected The first value to compare:

mixed $actual The second value to compare:

Return value

boolean

Overrides PHPUnit_Framework_Comparator::accepts

1 method overrides PHPUnit_Framework_Comparator_Array::accepts()
PHPUnit_Framework_Comparator_Object::accepts in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Object.php
Returns whether the comparator can compare two values.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Comparator/Array.php, line 66

Class

PHPUnit_Framework_Comparator_Array
Compares arrays for equality.

Code

public function accepts($expected, $actual) {
  return is_array($expected) && is_array($actual);
}