function StreamWrapperManagerTest::testUriScheme

Tests uri scheme.

@legacy-covers ::getScheme

Attributes

#[DataProvider('providerTestUriScheme')]

File

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

Class

StreamWrapperManagerTest
Tests Drupal\Core\StreamWrapper\StreamWrapperManager.

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.