function ExtensionStreamTest::testNoExtensionError
Tests that scheme with no extension throws an exception.
Attributes
#[TestWith([
'module',
])]
#[TestWith([
'theme',
])]
File
-
core/
tests/ Drupal/ KernelTests/ Core/ StreamWrapper/ ExtensionStreamTest.php, line 294
Class
- ExtensionStreamTest
- Tests extension stream wrappers.
Namespace
Drupal\KernelTests\Core\StreamWrapperCode
public function testNoExtensionError(string $scheme) : void {
$this->expectException(\RuntimeException::class);
$this->expectExceptionMessage('Unable to determine the extension name.');
file_exists($scheme . '://');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.