/** * @test */ public function testGetServersList() { $env = $this->getEnvironment(); $servers = $this->module->GetServersList($env, self::REGION, true); $this->assertInternalType('array', $servers); $ref = new ReflectionClass('Scalr\\Service\\Aws\\Ec2\\DataType\\InstanceStateData'); if (count($servers)) { foreach ($servers as $instanceid => $v) { $this->assertStringStartsWith('i-', $instanceid); $this->assertNotEmpty($v); } } }