public function testUpdatingOrderShipmentsPutsToTheOrderShipmentsResource() { $this->connection->expects($this->once())->method('put')->with($this->basePath . '/orders/1/shipments/1', (object) array()); Client::updateShipment(1, 1, array()); }