Example #1
0
 /**
  * @expectedException        \Pangaea\PangaeaException
  * @expectedExceptionMessage Cannot render item without an ItemLogistics element being set
  */
 public function testItemsWithoutItemLogisticsException()
 {
     $item = new Item('SKU123', '5000000000123');
     $item->render();
 }
Example #2
0
 /**
  * Renders the XML specific to an item, then adds it into the feed
  *
  * @param Item $item
  */
 public function addItem(Item $item)
 {
     $this->items .= $item->render();
 }