You are here

public function EnvParametersResourceTest::testIsFreshValueRemoved 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::testIsFreshValueRemoved()

File

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

Class

EnvParametersResourceTest

Namespace

Symfony\Component\HttpKernel\Tests\Config

Code

public function testIsFreshValueRemoved() {
  reset($this->initialEnv);
  unset($_SERVER[key($this->initialEnv)]);
  $this
    ->assertFalse($this->resource
    ->isFresh(time()), '->isFresh() returns false if a variable has been removed');
}