You are here

protected function MockFileSessionStorageTest::tearDown in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/Session/Storage/MockFileSessionStorageTest.php, line 41

Class

MockFileSessionStorageTest
Test class for MockFileSessionStorage.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage

Code

protected function tearDown() {
  $this->sessionDir = null;
  $this->storage = null;
  array_map('unlink', glob($this->sessionDir . '/*.session'));
  if (is_dir($this->sessionDir)) {
    rmdir($this->sessionDir);
  }
}