/** * @expectedException InvalidArgumentException */ public function testOrderException() { // initialize the API client $order = new Model\Order(); $order->setStatus("invalid_value"); }