public function getName() { return $this->product->getName(); }
/** * @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()); }