You are here

protected function NativeSessionStorageTest::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/Session/Storage/NativeSessionStorageTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\NativeSessionStorageTest::setUp()

File

vendor/symfony/http-foundation/Tests/Session/Storage/NativeSessionStorageTest.php, line 36

Class

NativeSessionStorageTest
Test class for NativeSessionStorage.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

protected function setUp() {
  $this
    ->iniSet('session.save_handler', 'files');
  $this
    ->iniSet('session.save_path', $this->savePath = sys_get_temp_dir() . '/sf2test');
  if (!is_dir($this->savePath)) {
    mkdir($this->savePath);
  }
}