You are here

public function EnvParametersResourceTest::testIsFreshValueChanged in Zircon Profile 8

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

File

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

Class

EnvParametersResourceTest

Namespace

Symfony\Component\HttpKernel\Tests\Config

Code

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