function FileCookieJarShimTest::tearDown

File

core/tests/Drupal/Tests/Component/Cookie/FileCookieJarShimTest.php, line 49

Class

FileCookieJarShimTest
Tests the hardened backport of \GuzzleHttp\Cookie\FileCookieJar.

Namespace

Drupal\Tests\Component\Cookie

Code

protected function tearDown() : void {
  if (file_exists($this->file)) {
    unlink($this->file);
  }
  parent::tearDown();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.