/** * @dataProvider getValueDataProvider */ public function testGetValue($baseAmount, $optionsValue, $result) { $this->baseAmount = $baseAmount; $this->prepareMock(); $this->bundleOptionMock->expects($this->once())->method('getValue')->will($this->returnValue($optionsValue)); $this->assertSame($result, $this->finalPrice->getValue()); }