Scalr\Tests\Functional\Modules\Platforms\Ec2Test::testGetServersList PHP Метод

testGetServersList() публичный Метод

public testGetServersList ( )
    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);
            }
        }
    }