You are here

public function MockObjectComparator::accepts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/comparator/src/MockObjectComparator.php \SebastianBergmann\Comparator\MockObjectComparator::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

bool

Overrides ObjectComparator::accepts

File

vendor/sebastian/comparator/src/MockObjectComparator.php, line 25

Class

MockObjectComparator
Compares PHPUnit_Framework_MockObject_MockObject instances for equality.

Namespace

SebastianBergmann\Comparator

Code

public function accepts($expected, $actual) {
  return $expected instanceof \PHPUnit_Framework_MockObject_MockObject && $actual instanceof \PHPUnit_Framework_MockObject_MockObject;
}