assertSame(1.5, calculation_to_quantity('1,5')); } public function testItThrowsForInvalidMathematicalExpressions(): void { $this->expectException(InvalidArgumentException::class); calculation_to_quantity('2++2'); } }