public function getEnv($name)
{
return $this->loader->getEnvironmentVariable($name);
}
/** * */ public function testCaseEnvironment_ReadsAndParsesEnvFileCorrectly() { $context = $this->getMock(RuntimeContextInterface::class); $env = new Environment($context, $this->path); $this->assertSame('VALUE1', $env->getEnv('KEY1')); $this->assertSame('VALUE2', $env->getEnv('KEY2')); $this->assertSame('VALUE1/TEST', $env->getEnv('KEY3')); $this->assertSame('2048M', $env->getEnv('INI_MEMORY_LIMIT')); $this->assertSame('2048M', ini_get('memory_limit')); }