public static function init($token, $room, $from, $transport = null) { if ($transport === null) { $transport = new Guzzle($token, $room, $from); } static::$client = new Client($transport); static::$queue = new Queue(); }
public function testMultipleInit() { Hippy::init('321', 'hippy', 'Rob'); Hippy::init('123', 'hippy', 'Rob'); list($client, $queue) = $this->getObjects(); $this->assertEquals($client->getToken(), '123'); }