Example #1
0
 /**
  * @covers Aws\Emr\EmrClient::factory
  */
 public function testFactoryInitializesClient()
 {
     $client = EmrClient::factory(array('key' => 'foo', 'secret' => 'bar', 'region' => 'us-west-2'));
     $this->assertInstanceOf('Aws\\Common\\Signature\\SignatureV2', $client->getSignature());
     $this->assertInstanceOf('Aws\\Common\\Credentials\\Credentials', $client->getCredentials());
     $this->assertEquals('https://elasticmapreduce.us-west-2.amazonaws.com', $client->getBaseUrl());
 }