diff --git a/tests/AbstractPhysicalQuantityTest.php b/tests/AbstractPhysicalQuantityTest.php index 19ce3f2..2936602 100644 --- a/tests/AbstractPhysicalQuantityTest.php +++ b/tests/AbstractPhysicalQuantityTest.php @@ -30,6 +30,12 @@ protected function getTestUnitOfMeasure($name, $aliases = []) ->willReturn($name); $newUnit->method('getAliases') ->willReturn($aliases); + $newUnit->method('isAliasOf') + ->will($this->returnCallback( + function ($value) use ($aliases) { + return in_array($value, $aliases); + } + )); return $newUnit; }