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