function FileSystemTest::testBasename
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::testBasename()
- 8.9.x core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::testBasename()
- 10 core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::testBasename()
@covers ::basename
@dataProvider providerTestBasename
File
-
core/
tests/ Drupal/ Tests/ Core/ File/ FileSystemTest.php, line 109
Class
- FileSystemTest
- @coversDefaultClass \Drupal\Core\File\FileSystem
Namespace
Drupal\Tests\Core\FileCode
public function testBasename($uri, $expected, $suffix = NULL) : void {
$this->assertSame($expected, $this->fileSystem
->basename($uri, $suffix));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.