You are here

public function MeasurementComparator::accepts in Physical Fields 8

File

src/Comparator/MeasurementComparator.php, line 17

Class

MeasurementComparator
Provides a PHPUnit comparator for measurements.

Namespace

Drupal\physical\Comparator

Code

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