/**
  * @dataProvider getUnitPrices
  * @param array $p1
  * @param array $p2
  * @param int $qty
  * @param float $price
  */
 public function testMultiUnitPrice($p1, $p2, $qty, $price)
 {
     $price1 = $this->getMock('JLM\\ProductBundle\\Model\\ProductPriceInterface');
     $price1->expects($this->any())->method('getQuantity')->will($this->returnValue($p1[0]));
     $price1->expects($this->any())->method('getUnitPrice')->will($this->returnValue($p1[1]));
     $price2 = $this->getMock('JLM\\ProductBundle\\Model\\ProductPriceInterface');
     $price2->expects($this->any())->method('getQuantity')->will($this->returnValue($p2[0]));
     $price2->expects($this->any())->method('getUnitPrice')->will($this->returnValue($p2[1]));
     $this->assertTrue($this->entity->addUnitPrice($price1));
     $this->assertTrue($this->entity->addUnitPrice($price2));
     $this->assertSame($price, $this->entity->getUnitPrice($qty));
 }