mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
15 lines
323 B
PHP
15 lines
323 B
PHP
--TEST--
|
|
Test Uri\WhatWg\Url parsing - scheme - invalid character
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
new Uri\WhatWg\Url("http&://example.com");
|
|
} catch (Throwable $e) {
|
|
echo $e::class, ": ", $e->getMessage(), PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Uri\WhatWg\InvalidUrlException: The specified URI is malformed (MissingSchemeNonRelativeUrl)
|