PHP Class Google\Cloud\Tests\RequestWrapperTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: GoogleCloudPlatform/gcloud-php

Public Methods

Method Description
credentialsProvider ( )
keyFileCredentialsProvider ( )
testAddsTokenToRequest ( )
testAddsUserAgentToRequest ( )
testCredentialsFetcher ( $wrapperConfig )
testCredentialsFromKeyFileStreamCanBeReadMultipleTimes ( $wrapperConfig )
testExceptionMessageIsNotTruncatedWithGuzzle ( )
testSuccessfullySendsRequest ( )
testThrowsBadRequestException ( )
testThrowsConflictException ( )
testThrowsExceptionWhenFetchingCredentialsFails ( )
testThrowsExceptionWhenRequestFails ( )
testThrowsExceptionWithInvalidCache ( )
testThrowsExceptionWithInvalidCredentialsFetcher ( )
testThrowsExceptionWithNonRetryableError ( )
testThrowsNotFoundException ( )
testThrowsServerException ( )

Method Details

credentialsProvider() public method

public credentialsProvider ( )

keyFileCredentialsProvider() public method

testAddsTokenToRequest() public method

testAddsUserAgentToRequest() public method

testCredentialsFetcher() public method

public testCredentialsFetcher ( $wrapperConfig )

testCredentialsFromKeyFileStreamCanBeReadMultipleTimes() public method

testExceptionMessageIsNotTruncatedWithGuzzle() public method

testSuccessfullySendsRequest() public method

testThrowsBadRequestException() public method

testThrowsConflictException() public method

testThrowsExceptionWhenFetchingCredentialsFails() public method

testThrowsExceptionWhenRequestFails() public method

testThrowsExceptionWithInvalidCache() public method

testThrowsExceptionWithInvalidCredentialsFetcher() public method

testThrowsExceptionWithNonRetryableError() public method

testThrowsNotFoundException() public method

testThrowsServerException() public method