/**
  * @param array $seats
  * @return Row
  */
 public static function createRow(array $seats)
 {
     $row = new Row();
     foreach ($seats as $seat) {
         $row->append(self::createSeat($seat));
     }
     return $row;
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function test_append_an_invalid_seat_instance_should_rainse_an_exception()
 {
     $row = new Row();
     $seat = new \stdClass();
     $row->append($seat);
 }