public function testAttrHashConstructor()
 {
     $attrs = array('name' => 'this is the name', 'description' => 'this is the description', 'not_existant_attr' => 'some other thing');
     $checkout = new Checkout($attrs);
     $this->assertSame("this is the description", $checkout->getDescription());
     $this->assertSame("this is the name", $checkout->getName());
 }
 /** @return Order */
 public function createNewCheckoutOrder(Checkout $checkout, array $params = [])
 {
     return $this->postAndMap($checkout->getResourcePath() . '/orders', $params, 'toOrder');
 }