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