public function testDisplayBothPrices() { $flag = true; $this->itemPriceRenderer->expects($this->once())->method('displayBothPrices')->will($this->returnValue($flag)); $this->assertEquals($flag, $this->renderer->displayBothPrices()); }