/** * @covers Aws\DynamoDb\DynamoDbClient::__construct */ public function testConstructorInitializesProperties() { $creds = new Credentials('foo', 'bar'); $signature = new SignatureV4(); $config = new Collection(array('endpoint_provider' => new \Aws\Common\Region\XmlEndpointProvider())); $client = new DynamoDbClient($creds, $signature, $config); $this->assertSame($creds, $client->getCredentials()); $this->assertSame($signature, $this->readAttribute($client, 'signature')); }