Scalr\Tests\Service\AwsTestCase::skipIfEc2PlatformDisabled PHP Method

skipIfEc2PlatformDisabled() protected method

Skips test functionals tests are skipped or if Ec2 platform is not enabled.
    protected function skipIfEc2PlatformDisabled()
    {
        if (static::isSkippedFunctionalTest() || !$this->environment || !$this->environment->isPlatformEnabled(\SERVER_PLATFORMS::EC2)) {
            $this->markTestSkipped('Ec2 platform is not enabled.');
        }
    }