getAvailableServiceInterfaces() 공개 메소드

Gets implemented web service interfaces
public getAvailableServiceInterfaces ( ) : array
리턴 array Returns Returns the list of available (implemented) web service interfaces
예제 #1
0
 /**
  * @test
  * @functional
  */
 public function testGetAvailableServiceInterfaces()
 {
     $awsRefClass = new \ReflectionClass(self::CLASS_AWS);
     $available = $this->aws->getAvailableServiceInterfaces();
     $interfaces = array();
     foreach ($awsRefClass->getConstants() as $k => $v) {
         if (strpos($k, 'SERVICE_INTERFACE_') === 0) {
             $interfaces[$k] = $v;
             $this->assertContains($v, $available, 'Missing interface ' . $v . ' in available.');
         }
     }
     foreach ($interfaces as $serviceInterfaceName) {
         $instance = $this->aws->{$serviceInterfaceName};
         $this->assertInstanceOf('Scalr\\Service\\Aws\\' . ucfirst($serviceInterfaceName), $instance, 'Illegal service interface instance object');
     }
     //Test that region does not need here.
     $this->getEnvironment()->aws->iam;
 }