Пример #1
0
 public function testDescribesLoadBalancerPolicyTypes()
 {
     $command = $this->client->getCommand('DescribeLoadBalancerPolicies');
     $result = $command->execute();
     $this->assertNotNull($result->getPath('ResponseMetadata/RequestId'));
     $this->assertInternalType('array', $result['PolicyDescriptions']);
     if (count($result['PolicyDescriptions'])) {
         foreach ($result['PolicyDescriptions'] as $i => $p) {
             // Ensure that the list is enumerated
             $this->assertInternalType('integer', $i);
             $this->assertInternalType('string', $p['PolicyName']);
             $this->assertInternalType('string', $p['PolicyTypeName']);
             $this->assertInternalType('array', $p['PolicyAttributeDescriptions']);
             $this->assertArrayHasKey(0, $p['PolicyAttributeDescriptions']);
         }
     }
 }