getToken() 공개 메소드

Get the token used to authenticate with.
public getToken ( ) : string
리턴 string
예제 #1
0
파일: BasicTest.php 프로젝트: rcrowe/hippy
 public function testToken()
 {
     $transport = new Transport(null, null, null);
     $hippy = new Hippy($transport);
     $this->assertNull($hippy->getToken());
     $hippy->setToken('12345');
     $this->assertEquals($hippy->getToken(), '12345');
     $transport = new Transport('54321', null, null);
     $hippy = new Hippy($transport);
     $this->assertEquals($hippy->getToken(), '54321');
 }