/** * @Given /^I replace this Item by an other$/ */ public function iReplaceThisItemByAnOther() { $item = new \Nekland\FeedBundle\Item\GenericItem(); $item->setFeedId(1); $this->feed->replace(0, $item); }