/** * @dataProvider provideCalculateException */ public function testGetPriceException($exceptionClass, $exceptionMessage, $weight) { $this->setExpectedException($exceptionClass, $exceptionMessage); $zoneCalculator = new ZoneCalculator(['name' => 1, 'weight_prices' => []]); $zoneCalculator->calculate($weight); }