You are here

public function StreamWrapperTest::testDirnameTrailingSlash in AmazonS3 7.2

Test that dirname properly handles trailing slashes.

@covers \Drupal\amazons3\StreamWrapper::dirname

File

tests/StreamWrapperTest.php, line 291

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

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