You are here

public function LocalTest::tearDown in Flysystem 3.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::tearDown()
  2. 2.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::tearDown()
  3. 3.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::tearDown()

File

tests/src/Unit/Flysystem/LocalTest.php, line 45

Class

LocalTest
@coversDefaultClass \Drupal\flysystem\Flysystem\Local @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function tearDown() {
  (new LocalAdapter('foo'))
    ->deleteDir('');
  @rmdir('foo');
  unlink('test.txt');
  @unlink('does_not_exist/.htaccess');
  @rmdir('does_not_exist');
}