You are here

public function BasicPathTest::testRegexMatching in AmazonS3 7.2

@covers Drupal\amazons3\Matchable\MatchableRegex::match

File

tests/Matchable/BasicPathTest.php, line 55

Class

BasicPathTest
@class BasicPathTest @package Drupal\amazons3Test\Matchable

Namespace

Drupal\amazons3Test\Matchable

Code

public function testRegexMatching() {
  $path = new BasicPath('^ab$');
  $this
    ->assertSame($path, $path
    ->match('ab'));
  $this
    ->assertFalse($path
    ->match('yz'));
}