Example #1
0
 public function refreshToken()
 {
     try {
         $this->request('GET', '/gdc/account/token');
     } catch (Exception $e) {
         throw Exception::loginError($e);
     }
 }
 public function testExceptionLoginError()
 {
     $e = Exception::loginError();
     $this->assertEquals(403, $e->getCode());
 }