Example #1
0
 /** @test */
 public function itIsInitializableByFactoryMethod()
 {
     $this->assertInstanceOf('Tuiter\\TwitterClient', TwitterClient::factory('1234', '1234', '1234', '1234'));
 }
Example #2
0
 /**
  * Factory
  *
  * @param $consumerKey
  * @param $consumerSecret
  * @param $token
  * @param $tokenSecret
  *
  * @return self
  */
 public static function withParams($consumerKey, $consumerSecret, $token, $tokenSecret)
 {
     return new self(TwitterClient::factory($consumerKey, $consumerSecret, $token, $tokenSecret));
 }