public function testListJobsCommandAndIterator() { $commandResults = $this->client->listJobs()->toArray(); $this->assertArrayHasKey('Jobs', $commandResults); $iteratorResults = $this->client->getIterator('ListJobs')->toArray(); $this->assertEquals($commandResults['Jobs'], $iteratorResults); }
public function testFactoryInitializesClient() { $client = ImportExportClient::factory(array('key' => 'foo', 'secret' => 'bar')); $this->assertInstanceOf('Aws\\Common\\Signature\\SignatureV2', $client->getSignature()); $this->assertInstanceOf('Aws\\Common\\Credentials\\Credentials', $client->getCredentials()); $this->assertEquals('https://importexport.amazonaws.com', $client->getBaseUrl()); }
/** * @return \Guzzle\Service\Resource\Model */ public function listJobs() { return $this->_client->listJobs(); }