public function NativeFileSessionHandlerTest::testConstructSavePath

@dataProvider savePathDataProvider

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php, line 45

Class

NativeFileSessionHandlerTest
Test class for NativeFileSessionHandler.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler

Code

public function testConstructSavePath($savePath, $expectedSavePath, $path) {
  $handler = new NativeFileSessionHandler($savePath);
  $this
    ->assertEquals($expectedSavePath, ini_get('session.save_path'));
  $this
    ->assertTrue(is_dir(realpath($path)));
  rmdir($path);
}