function StreamWrapperManagerTest::testUriScheme

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/StreamWrapper/StreamWrapperManagerTest.php \Drupal\KernelTests\Core\StreamWrapper\StreamWrapperManagerTest::testUriScheme()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/StreamWrapper/StreamWrapperManagerTest.php \Drupal\KernelTests\Core\StreamWrapper\StreamWrapperManagerTest::testUriScheme()
  3. 11.x core/tests/Drupal/KernelTests/Core/StreamWrapper/StreamWrapperManagerTest.php \Drupal\KernelTests\Core\StreamWrapper\StreamWrapperManagerTest::testUriScheme()

@covers ::getScheme

@dataProvider providerTestUriScheme

File

core/tests/Drupal/KernelTests/Core/StreamWrapper/StreamWrapperManagerTest.php, line 41

Class

StreamWrapperManagerTest
@coversDefaultClass \Drupal\Core\StreamWrapper\StreamWrapperManager @group File

Namespace

Drupal\KernelTests\Core\StreamWrapper

Code

public function testUriScheme($uri, $expected) : void {
    $this->assertSame($expected, StreamWrapperManager::getScheme($uri));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.