getUserAgent() public method

It will look like: "PHP Twitter/ "
public getUserAgent ( ) : string
return string
Beispiel #1
0
 /**
  * Tests Twitter->getUserAgent()
  */
 public function testGetUserAgent()
 {
     $this->twitter->setUserAgent('testing/1.0.0');
     $this->assertEquals('PHP Twitter/' . Twitter::VERSION . ' testing/1.0.0', $this->twitter->getUserAgent());
 }