getClient() public method

public getClient ( string $client, string $profile = null, array $args = [] ) : Aws\AwsClientInterface
$client string
$profile string
$args array
return Aws\AwsClientInterface
 public function testLoadProfile()
 {
     chdir(FIXTURE_ROOT . 'ProfileManager/fixture_basic');
     putenv("AWS_DEFAULT_REGION=eu-west-1");
     $cfnClient = $this->profileManager->getClient('CloudFormation', 'test1');
     $credentials = $cfnClient->getCredentials()->wait(true);
     $this->assertEquals('TESTACCESSKEY1', $credentials->getAccessKeyId());
     $this->assertEquals('TESTSECRETKEY1', $credentials->getSecretKey());
 }