/** * @expectedException \Stamplia\ApiException * @expectedExceptionCode 401 */ public function testUnauthorizedAccess() { $client = new ApiClient(); $client->getUserTemplates(array()); }