Google\Cloud\Tests\GrpcTraitTest::testGetsGaxConfig PHP Method

testGetsGaxConfig() public method

public testGetsGaxConfig ( )
    public function testGetsGaxConfig()
    {
        $fetcher = $this->prophesize(FetchAuthTokenInterface::class)->reveal();
        $this->requestWrapper->getCredentialsFetcher()->willReturn($fetcher);
        $this->implementation->setRequestWrapper($this->requestWrapper->reveal());
        $expected = ['credentialsLoader' => $fetcher, 'enableCaching' => false, 'appName' => 'gcloud-php', 'appVersion' => ServiceBuilder::VERSION];
        $this->assertEquals($expected, $this->implementation->call('getGaxConfig'));
    }