Ejemplo n.º 1
0
 public function getName()
 {
     return $this->product->getName();
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider dataForTestCreateProduct
  */
 public function testCreateProduct($name, $price, $unit, CartProduct $product)
 {
     $this->assertEquals($name, $product->getName());
     $this->assertEquals($price, $product->getPrice());
     $this->assertEquals($unit, $product->getUnit());
 }