You are here

public function FlysystemBridgeTest::testDirname in Flysystem 8

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

@covers ::dirname

File

tests/src/Unit/FlysystemBridgeTest.php, line 101

Class

FlysystemBridgeTest
@coversDefaultClass \Drupal\flysystem\FlysystemBridge @group flysystem

Namespace

Drupal\Tests\flysystem\Unit

Code

public function testDirname() {
  $this
    ->assertSame('testscheme://', $this->bridge
    ->dirname());
  $this
    ->assertSame('testscheme://dir://dir', $this->bridge
    ->dirname('testscheme:///dir://dir/file.txt'));
}