getUserAgent() public method

It will look like: "PHP Twitter/ "
public getUserAgent ( ) : string
return string
Ejemplo n.º 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());
 }