You are here

public function StreamWrapperTest::testDirnameNested in AmazonS3 7.2

Test that dirname works with a pseudo directory.

@covers \Drupal\amazons3\StreamWrapper::dirname

File

tests/StreamWrapperTest.php, line 282

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testDirnameNested() {
  $this
    ->assertEquals('s3://bucket.example.com/subdir', $this->wrapper
    ->dirname('s3://bucket.example.com/subdir/second-subdir'));
}