/** * @covers ::__construct * @covers ::getSecret * @covers ::getHttp */ public function testConstruction() { $http = new GuzzleAdapter(new GuzzleClient(array('handler' => new MockHandler()))); $client = new Client('aaaaa', 'bbbbb', $http); $this->assertEquals('bbbbb', $client->getSecret()); $this->assertSame($http, $client->getHttp()); $client = new Client('ccccc', 'ddddd'); $this->assertEquals('ddddd', $client->getSecret()); $this->assertNotNull($client->getHttp()); }