public function testSettingAdapter() { $this->assertInstanceOf('\\Google\\Api\\Adapter\\Curl', $this->clientStub->getAdapter()); $adapter = new \Google\Api\Adapter\FileGetContents(); $this->assertInstanceOf('\\Google\\Api\\Translate', $this->clientStub->setAdapter($adapter)); $this->assertTrue($adapter === $this->clientStub->getAdapter()); }