You are here

protected function EnvParametersResourceTest::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Config/EnvParametersResourceTest.php \Symfony\Component\HttpKernel\Tests\Config\EnvParametersResourceTest::setUp()

File

vendor/symfony/http-kernel/Tests/Config/EnvParametersResourceTest.php, line 22

Class

EnvParametersResourceTest

Namespace

Symfony\Component\HttpKernel\Tests\Config

Code

protected function setUp() {
  $this->initialEnv = array(
    $this->prefix . '1' => 'foo',
    $this->prefix . '2' => 'bar',
  );
  foreach ($this->initialEnv as $key => $value) {
    $_SERVER[$key] = $value;
  }
  $this->resource = new EnvParametersResource($this->prefix);
}