19 declare(strict_types=1);
33 $this->assertInstanceOf(URL::class,
new URL());
36 #[DataProvider('provideTransformData')] 39 $this->assertSame($exptected, (
new URL())->
transform($in));
44 $this->expectException(ValueError::class);
50 $this->expectException(TypeError::class);
56 $alpha = implode(
'', range(ord(
'A'), ord(
'z')));
57 $numbers = implode(
'', range(ord(
'0'), ord(
'9')));
62 'Numbers' => $numbers,
63 'Quotes' =>
"'" .
'"',
64 'Different quotes' =>
'"Hey, y' .
"'" .
'all"',
66 'Encode entities' =>
'"hello"',
68 'HTML special chars' =>
'<>\'"&',
69 'Characters beyond ASCII value 255' =>
'Ā',
70 'Punctuation and unreserved check' =>
',._-:;',
71 'Basic control characters and null' =>
"\r\n\t\0",
76 'PHP quirks from the past' => [
'%20~%2B',
' ~+'],