diff --git a/ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt b/ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt index 284de4e6a522..655f57700abc 100644 --- a/ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt +++ b/ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\UriBuilder basic - error - with base URL +Test Uri\Rfc3986\UriBuilder basic - error - with base URI --FILE-- build(new Uri\Rfc3986\Uri("/foo/bar")); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/basic_success_with_base.phpt b/ext/uri/tests/rfc3986/builder/basic_success_with_base.phpt index b7a84dc00cf1..f98f34a5981b 100644 --- a/ext/uri/tests/rfc3986/builder/basic_success_with_base.phpt +++ b/ext/uri/tests/rfc3986/builder/basic_success_with_base.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\UriBuilder basic - success - with base URL +Test Uri\Rfc3986\UriBuilder basic - success - with base URI --FILE-- setFragment("#foo"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/fragment_error_unicode_char.phpt b/ext/uri/tests/rfc3986/builder/fragment_error_unicode_char.phpt index 2a15d5e85a82..a87ef9f5d3b0 100644 --- a/ext/uri/tests/rfc3986/builder/fragment_error_unicode_char.phpt +++ b/ext/uri/tests/rfc3986/builder/fragment_error_unicode_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setFragment("főő"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/host_error_percent_encoding1.phpt b/ext/uri/tests/rfc3986/builder/host_error_percent_encoding1.phpt index ae06238a1f8f..7774bd4beb8e 100644 --- a/ext/uri/tests/rfc3986/builder/host_error_percent_encoding1.phpt +++ b/ext/uri/tests/rfc3986/builder/host_error_percent_encoding1.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setHost("ex%3mple.co"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/host_error_percent_encoding2.phpt b/ext/uri/tests/rfc3986/builder/host_error_percent_encoding2.phpt index cc514ec69191..49f29269cff8 100644 --- a/ext/uri/tests/rfc3986/builder/host_error_percent_encoding2.phpt +++ b/ext/uri/tests/rfc3986/builder/host_error_percent_encoding2.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\UriBuilder::setHost() - error - invalid percent encoded octet in IPv6 +Test Uri\Rfc3986\UriBuilder::setHost() - error - invalid percent-encoded octet in IPv6 --FILE-- setHost("[2001:%308:85a3:0000:0000:8a2e:0370:7334]"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/host_success_regname.phpt b/ext/uri/tests/rfc3986/builder/host_success_regname.phpt index 81e93ccfc10a..c7288893524f 100644 --- a/ext/uri/tests/rfc3986/builder/host_success_regname.phpt +++ b/ext/uri/tests/rfc3986/builder/host_success_regname.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\UriBuilder::setHost() - success - Registered name +Test Uri\Rfc3986\UriBuilder::setHost() - success - registered name --FILE-- setPath("fo:o/bar/baz"); try { $builder->build(); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/path_error_leading_double_slash.phpt b/ext/uri/tests/rfc3986/builder/path_error_leading_double_slash.phpt index b1f0a2518f1c..ede07bda8fc8 100644 --- a/ext/uri/tests/rfc3986/builder/path_error_leading_double_slash.phpt +++ b/ext/uri/tests/rfc3986/builder/path_error_leading_double_slash.phpt @@ -9,7 +9,7 @@ $builder->setPath("//foo/bar/baz"); try { $builder->build(); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/path_error_missing_leading_slash.phpt b/ext/uri/tests/rfc3986/builder/path_error_missing_leading_slash.phpt index 97b6c3e8b854..7b0cd553ae15 100644 --- a/ext/uri/tests/rfc3986/builder/path_error_missing_leading_slash.phpt +++ b/ext/uri/tests/rfc3986/builder/path_error_missing_leading_slash.phpt @@ -10,7 +10,7 @@ $builder->setHost("example.com"); try { $builder->build(); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/path_error_special_char.phpt b/ext/uri/tests/rfc3986/builder/path_error_special_char.phpt index 039b22770246..3831c67bde70 100644 --- a/ext/uri/tests/rfc3986/builder/path_error_special_char.phpt +++ b/ext/uri/tests/rfc3986/builder/path_error_special_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setPath("#foo"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/port_error_missing_host.phpt b/ext/uri/tests/rfc3986/builder/port_error_missing_host.phpt index 4b40e84c78f3..a0d8a4c0c88b 100644 --- a/ext/uri/tests/rfc3986/builder/port_error_missing_host.phpt +++ b/ext/uri/tests/rfc3986/builder/port_error_missing_host.phpt @@ -9,7 +9,7 @@ $builder->setPort(443); try { $builder->build(); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/port_error_negative.phpt b/ext/uri/tests/rfc3986/builder/port_error_negative.phpt index 4cbc0e1c69d7..0a1dd624b449 100644 --- a/ext/uri/tests/rfc3986/builder/port_error_negative.phpt +++ b/ext/uri/tests/rfc3986/builder/port_error_negative.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setPort(-1); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/query_error_special_char.phpt b/ext/uri/tests/rfc3986/builder/query_error_special_char.phpt index ecfced24a44c..d53b088b7a55 100644 --- a/ext/uri/tests/rfc3986/builder/query_error_special_char.phpt +++ b/ext/uri/tests/rfc3986/builder/query_error_special_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setQuery("#foo"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/query_error_unicode_char.phpt b/ext/uri/tests/rfc3986/builder/query_error_unicode_char.phpt index 4c212cddd631..c8c7f093c038 100644 --- a/ext/uri/tests/rfc3986/builder/query_error_unicode_char.phpt +++ b/ext/uri/tests/rfc3986/builder/query_error_unicode_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setQuery("főő"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/scheme_error_empty.phpt b/ext/uri/tests/rfc3986/builder/scheme_error_empty.phpt index 13594c163363..dc325cc77a7b 100644 --- a/ext/uri/tests/rfc3986/builder/scheme_error_empty.phpt +++ b/ext/uri/tests/rfc3986/builder/scheme_error_empty.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setScheme(""); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/scheme_error_first_char.phpt b/ext/uri/tests/rfc3986/builder/scheme_error_first_char.phpt index c178a0fa1f1e..92719c129c30 100644 --- a/ext/uri/tests/rfc3986/builder/scheme_error_first_char.phpt +++ b/ext/uri/tests/rfc3986/builder/scheme_error_first_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setScheme("1"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/scheme_error_special_char.phpt b/ext/uri/tests/rfc3986/builder/scheme_error_special_char.phpt index 4941db44aa7d..1817af42edb3 100644 --- a/ext/uri/tests/rfc3986/builder/scheme_error_special_char.phpt +++ b/ext/uri/tests/rfc3986/builder/scheme_error_special_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setScheme(":"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/userinfo_error_missing_host.phpt b/ext/uri/tests/rfc3986/builder/userinfo_error_missing_host.phpt index a6919e8ffd0a..997ff84c6944 100644 --- a/ext/uri/tests/rfc3986/builder/userinfo_error_missing_host.phpt +++ b/ext/uri/tests/rfc3986/builder/userinfo_error_missing_host.phpt @@ -9,7 +9,7 @@ $builder->setUserInfo("user:pass"); try { $builder->build(); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/userinfo_error_percent_encoding.phpt b/ext/uri/tests/rfc3986/builder/userinfo_error_percent_encoding.phpt index 0830a57864d7..53730dfe529d 100644 --- a/ext/uri/tests/rfc3986/builder/userinfo_error_percent_encoding.phpt +++ b/ext/uri/tests/rfc3986/builder/userinfo_error_percent_encoding.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setUserInfo("%3"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/builder/userinfo_error_special_char.phpt b/ext/uri/tests/rfc3986/builder/userinfo_error_special_char.phpt index 9d3fb2544daf..6db1fbb5ba6c 100644 --- a/ext/uri/tests/rfc3986/builder/userinfo_error_special_char.phpt +++ b/ext/uri/tests/rfc3986/builder/userinfo_error_special_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->setUserInfo("<>"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/general/array_cast_success.phpt b/ext/uri/tests/rfc3986/general/array_cast_success.phpt index 9e8e56eb7277..9bb133eba767 100644 --- a/ext/uri/tests/rfc3986/general/array_cast_success.phpt +++ b/ext/uri/tests/rfc3986/general/array_cast_success.phpt @@ -1,5 +1,5 @@ --TEST-- -Test casting Uri\Rfc3986\Uri to array +Test Uri\Rfc3986\Uri array cast - success --FILE-- withFragment("#fragment"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt b/ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt index 5caea7996c5f..18e0af52bbc7 100644 --- a/ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt +++ b/ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - fragment - unicode characters +Test Uri\Rfc3986\Uri::withFragment() - error - Unicode characters --FILE-- withFragment("ő"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/fragment_success_empty.phpt b/ext/uri/tests/rfc3986/modification/fragment_success_empty.phpt index 2c6285656a7b..807ecc3afe24 100644 --- a/ext/uri/tests/rfc3986/modification/fragment_success_empty.phpt +++ b/ext/uri/tests/rfc3986/modification/fragment_success_empty.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - fragment - empty string +Test Uri\Rfc3986\Uri::withFragment() - success - empty string --FILE-- withHost("ex#mple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/host_error_unset_with_userinfo.phpt b/ext/uri/tests/rfc3986/modification/host_error_unset_with_userinfo.phpt index dd3a527ff9ed..c5755dcc4f01 100644 --- a/ext/uri/tests/rfc3986/modification/host_error_unset_with_userinfo.phpt +++ b/ext/uri/tests/rfc3986/modification/host_error_unset_with_userinfo.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - host - unsetting with userinfo +Test Uri\Rfc3986\Uri::withHost() - error - unsetting with userinfo --FILE-- withPath("/\0foo"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/path_error_reserved.phpt b/ext/uri/tests/rfc3986/modification/path_error_reserved.phpt index 24863251f943..e539f6cefd06 100644 --- a/ext/uri/tests/rfc3986/modification/path_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/path_error_reserved.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - path - reserved characters +Test Uri\Rfc3986\Uri::withPath() - error - reserved characters --FILE-- withPath("/[foo]"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/path_error_unicode.phpt b/ext/uri/tests/rfc3986/modification/path_error_unicode.phpt index 1762470ee2a9..c86045ef3304 100644 --- a/ext/uri/tests/rfc3986/modification/path_error_unicode.phpt +++ b/ext/uri/tests/rfc3986/modification/path_error_unicode.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - path - unicode characters +Test Uri\Rfc3986\Uri::withPath() - error - Unicode characters --FILE-- withPath("/ő"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/path_error_without_leading_slash.phpt b/ext/uri/tests/rfc3986/modification/path_error_without_leading_slash.phpt index 5ab98a5d449a..7b8f2a9c8ec2 100644 --- a/ext/uri/tests/rfc3986/modification/path_error_without_leading_slash.phpt +++ b/ext/uri/tests/rfc3986/modification/path_error_without_leading_slash.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - path - without leading slash +Test Uri\Rfc3986\Uri::withPath() - error - without leading slash --FILE-- withPath("foo"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/path_success_email.phpt b/ext/uri/tests/rfc3986/modification/path_success_email.phpt index 0ff5a2dd1412..f13e1a4fe7ae 100644 --- a/ext/uri/tests/rfc3986/modification/path_success_email.phpt +++ b/ext/uri/tests/rfc3986/modification/path_success_email.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - path - using an email format +Test Uri\Rfc3986\Uri::withPath() - success - using an email format --FILE-- withPort(-1); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/port_success_empty_host.phpt b/ext/uri/tests/rfc3986/modification/port_success_empty_host.phpt index 4710f4fb81b1..09aebc4d90f2 100644 --- a/ext/uri/tests/rfc3986/modification/port_success_empty_host.phpt +++ b/ext/uri/tests/rfc3986/modification/port_success_empty_host.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - port - adding with an empty host +Test Uri\Rfc3986\Uri::withPort() - success - adding with an empty host --FILE-- withQuery("#foo"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/query_error_unicode.phpt b/ext/uri/tests/rfc3986/modification/query_error_unicode.phpt index 5474792e39dd..3aa0858174ee 100644 --- a/ext/uri/tests/rfc3986/modification/query_error_unicode.phpt +++ b/ext/uri/tests/rfc3986/modification/query_error_unicode.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - query - unicode characters +Test Uri\Rfc3986\Uri::withQuery() - error - Unicode characters --FILE-- withQuery("ő"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/query_success_context_sensitive_reserved.phpt b/ext/uri/tests/rfc3986/modification/query_success_context_sensitive_reserved.phpt index 437c00d7278e..a54b2f7288d0 100644 --- a/ext/uri/tests/rfc3986/modification/query_success_context_sensitive_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/query_success_context_sensitive_reserved.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - query - context-sensitive reserved character +Test Uri\Rfc3986\Uri::withQuery() - success - context-sensitive reserved character --FILE-- withScheme(""); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt b/ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt index 7b6d179fdc9d..092a5eb55403 100644 --- a/ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt +++ b/ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - scheme - URL encoded characters +Test Uri\Rfc3986\Uri::withScheme() - error - percent-encoded characters --FILE-- withScheme("http%73"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt b/ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt index beb94baf955c..b55ddd7fffea 100644 --- a/ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - scheme - reserved characters +Test Uri\Rfc3986\Uri::withScheme() - error - reserved characters --FILE-- withScheme("https:"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/scheme_success_basic.phpt b/ext/uri/tests/rfc3986/modification/scheme_success_basic.phpt index d50b76e085d1..7ca0de00f665 100644 --- a/ext/uri/tests/rfc3986/modification/scheme_success_basic.phpt +++ b/ext/uri/tests/rfc3986/modification/scheme_success_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - scheme - basic case +Test Uri\Rfc3986\Uri::withScheme() - success - basic case --FILE-- withUserInfo("us/r:password"); // us/r:password } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/modification/userinfo_success_empty.phpt b/ext/uri/tests/rfc3986/modification/userinfo_success_empty.phpt index 0d494c6a60a3..03848c4e2811 100644 --- a/ext/uri/tests/rfc3986/modification/userinfo_success_empty.phpt +++ b/ext/uri/tests/rfc3986/modification/userinfo_success_empty.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - userinfo - empty string +Test Uri\Rfc3986\Uri::withUserInfo() - success - empty string --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/basic_error_null_byte.phpt b/ext/uri/tests/rfc3986/parsing/basic_error_null_byte.phpt index 91d194e2ff5e..3209eec4cb8c 100644 --- a/ext/uri/tests/rfc3986/parsing/basic_error_null_byte.phpt +++ b/ext/uri/tests/rfc3986/parsing/basic_error_null_byte.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - basic - URI contains null byte try { new Uri\Rfc3986\Uri("https://exam\0ple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/host_error_multibyte.phpt b/ext/uri/tests/rfc3986/parsing/host_error_multibyte.phpt index d901d0fdecbd..4d5d2efb97a3 100644 --- a/ext/uri/tests/rfc3986/parsing/host_error_multibyte.phpt +++ b/ext/uri/tests/rfc3986/parsing/host_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - host - multibyte character try { new Uri\Rfc3986\Uri("https://exḁmple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/host_error_multibyte_emoji.phpt b/ext/uri/tests/rfc3986/parsing/host_error_multibyte_emoji.phpt index be4fc5aa626f..dc3331ecc67e 100644 --- a/ext/uri/tests/rfc3986/parsing/host_error_multibyte_emoji.phpt +++ b/ext/uri/tests/rfc3986/parsing/host_error_multibyte_emoji.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri parsing - host - emoji code point +Test Uri\Rfc3986\Uri parsing - host - emoji character --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/path_error_multibyte.phpt b/ext/uri/tests/rfc3986/parsing/path_error_multibyte.phpt index ded528d03082..3eb651bdeff3 100644 --- a/ext/uri/tests/rfc3986/parsing/path_error_multibyte.phpt +++ b/ext/uri/tests/rfc3986/parsing/path_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - path - multibyte character try { new Uri\Rfc3986\Uri("https://example.com/fȎȎ"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/path_error_reserved.phpt b/ext/uri/tests/rfc3986/parsing/path_error_reserved.phpt index 2a7efd702569..398bfd6400c3 100644 --- a/ext/uri/tests/rfc3986/parsing/path_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/parsing/path_error_reserved.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - path - reserved character try { new Uri\Rfc3986\Uri("https://example.com/fo[o/ba]r/"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/port_error_multibyte.phpt b/ext/uri/tests/rfc3986/parsing/port_error_multibyte.phpt index 54bcd849e5f3..33eb4116c155 100644 --- a/ext/uri/tests/rfc3986/parsing/port_error_multibyte.phpt +++ b/ext/uri/tests/rfc3986/parsing/port_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - port - multibyte character try { new Uri\Rfc3986\Uri("https://example.com:Ȏ"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/port_error_negative.phpt b/ext/uri/tests/rfc3986/parsing/port_error_negative.phpt index df29c2767f05..1284ac845bf4 100644 --- a/ext/uri/tests/rfc3986/parsing/port_error_negative.phpt +++ b/ext/uri/tests/rfc3986/parsing/port_error_negative.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - port - negative value try { var_dump(new Uri\Rfc3986\Uri("http://example.com:-1")); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/port_error_overflow.phpt b/ext/uri/tests/rfc3986/parsing/port_error_overflow.phpt index 169f74e61de2..b4d412bc7c25 100644 --- a/ext/uri/tests/rfc3986/parsing/port_error_overflow.phpt +++ b/ext/uri/tests/rfc3986/parsing/port_error_overflow.phpt @@ -5,12 +5,12 @@ Test Uri\Rfc3986\Uri parsing - port - integer overflow if (PHP_INT_SIZE == 8) { $uri = new \Uri\Rfc3986\Uri('https://example.com:9223372036854775807'); - echo $uri->getPort(), PHP_EOL; - echo "2147483647", PHP_EOL; + echo $uri->getPort(), "\n"; + echo "2147483647", "\n"; } else { $uri = new \Uri\Rfc3986\Uri('https://example.com:2147483647'); - echo "9223372036854775807", PHP_EOL; - echo $uri->getPort(), PHP_EOL; + echo "9223372036854775807", "\n"; + echo $uri->getPort(), "\n"; } try { diff --git a/ext/uri/tests/rfc3986/parsing/port_error_percent_encoded.phpt b/ext/uri/tests/rfc3986/parsing/port_error_percent_encoded.phpt index e38ad85b5758..caa5b1982735 100644 --- a/ext/uri/tests/rfc3986/parsing/port_error_percent_encoded.phpt +++ b/ext/uri/tests/rfc3986/parsing/port_error_percent_encoded.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\Rfc3986\Uri parsing - port - percent encoded character +Test Uri\Rfc3986\Uri parsing - port - percent-encoded character --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/port_error_user_info_wrong_place.phpt b/ext/uri/tests/rfc3986/parsing/port_error_user_info_wrong_place.phpt index d2632a6f2806..26dd223d2123 100644 --- a/ext/uri/tests/rfc3986/parsing/port_error_user_info_wrong_place.phpt +++ b/ext/uri/tests/rfc3986/parsing/port_error_user_info_wrong_place.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - port - user info component is in wrong place try { var_dump(new Uri\Rfc3986\Uri("https://example.com:8080@username:password")); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/query_error_multibyte_emoji.phpt b/ext/uri/tests/rfc3986/parsing/query_error_multibyte_emoji.phpt index 7b720ee2c8c1..5114bce99f72 100644 --- a/ext/uri/tests/rfc3986/parsing/query_error_multibyte_emoji.phpt +++ b/ext/uri/tests/rfc3986/parsing/query_error_multibyte_emoji.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri parsing - query - emoji code point +Test Uri\Rfc3986\Uri parsing - query - emoji character --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/scheme_error_multibyte.phpt b/ext/uri/tests/rfc3986/parsing/scheme_error_multibyte.phpt index f638ca80e0cd..4972bdeada13 100644 --- a/ext/uri/tests/rfc3986/parsing/scheme_error_multibyte.phpt +++ b/ext/uri/tests/rfc3986/parsing/scheme_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - scheme - multibyte characters try { new Uri\Rfc3986\Uri("ƕŢŢƤƨ://example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/scheme_error_percent_encoded.phpt b/ext/uri/tests/rfc3986/parsing/scheme_error_percent_encoded.phpt index d4dba6f260ad..80a8be51c480 100644 --- a/ext/uri/tests/rfc3986/parsing/scheme_error_percent_encoded.phpt +++ b/ext/uri/tests/rfc3986/parsing/scheme_error_percent_encoded.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\Rfc3986\Uri parsing - scheme - percent encoded character +Test Uri\Rfc3986\Uri parsing - scheme - percent-encoded character --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/scheme_error_reserved.phpt b/ext/uri/tests/rfc3986/parsing/scheme_error_reserved.phpt index 99dfb664ea05..ce7eed6ae789 100644 --- a/ext/uri/tests/rfc3986/parsing/scheme_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/parsing/scheme_error_reserved.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - scheme - reserved character try { new Uri\Rfc3986\Uri("http&://example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/userinfo_error_extended_ascii.phpt b/ext/uri/tests/rfc3986/parsing/userinfo_error_extended_ascii.phpt index 61ea8ecc3c28..bf12a200e1ce 100644 --- a/ext/uri/tests/rfc3986/parsing/userinfo_error_extended_ascii.phpt +++ b/ext/uri/tests/rfc3986/parsing/userinfo_error_extended_ascii.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - userinfo - extended ASCII character try { new Uri\Rfc3986\Uri("http://úzör@example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/userinfo_error_multibyte.phpt b/ext/uri/tests/rfc3986/parsing/userinfo_error_multibyte.phpt index fbceea77b1cd..8d83d632a3a1 100644 --- a/ext/uri/tests/rfc3986/parsing/userinfo_error_multibyte.phpt +++ b/ext/uri/tests/rfc3986/parsing/userinfo_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - userinfo - multibyte character try { new Uri\Rfc3986\Uri("http://usĕr:pąss@example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/parsing/userinfo_error_reserved.phpt b/ext/uri/tests/rfc3986/parsing/userinfo_error_reserved.phpt index 3b6caeb7a0ed..e505d4a7d310 100644 --- a/ext/uri/tests/rfc3986/parsing/userinfo_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/parsing/userinfo_error_reserved.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - userinfo - reserved character try { new Uri\Rfc3986\Uri("http://us[er]:pass@example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/reference_resolution/parse_success_absolute_with_base.phpt b/ext/uri/tests/rfc3986/reference_resolution/parse_success_absolute_uri_with_base.phpt similarity index 87% rename from ext/uri/tests/rfc3986/reference_resolution/parse_success_absolute_with_base.phpt rename to ext/uri/tests/rfc3986/reference_resolution/parse_success_absolute_uri_with_base.phpt index 54f96abf14c6..789421862b21 100644 --- a/ext/uri/tests/rfc3986/reference_resolution/parse_success_absolute_with_base.phpt +++ b/ext/uri/tests/rfc3986/reference_resolution/parse_success_absolute_uri_with_base.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri reference resolution - parse() - absolute URI with base URI +Test Uri\Rfc3986\Uri::parse() - success - absolute URI with base URI --FILE-- resolve("/f\0o"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/rfc3986/reference_resolution/resolve_error_unicode.phpt b/ext/uri/tests/rfc3986/reference_resolution/resolve_error_path_unicode_character.phpt similarity index 79% rename from ext/uri/tests/rfc3986/reference_resolution/resolve_error_unicode.phpt rename to ext/uri/tests/rfc3986/reference_resolution/resolve_error_path_unicode_character.phpt index 3fcf488074ed..26bbffbd0b5a 100644 --- a/ext/uri/tests/rfc3986/reference_resolution/resolve_error_unicode.phpt +++ b/ext/uri/tests/rfc3986/reference_resolution/resolve_error_path_unicode_character.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri reference resolution - resolve() - unicode +Test Uri\Rfc3986\Uri::resolve() - error - Unicode character in path --FILE-- withHost("ex@mple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special1.phpt b/ext/uri/tests/whatwg/modification/host_error_at_sign_special.phpt similarity index 65% rename from ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special1.phpt rename to ext/uri/tests/whatwg/modification/host_error_at_sign_special.phpt index 235960f19b53..52460752c88f 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special1.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_at_sign_special.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - host - forbidden domain code point +Test Uri\WhatWg\Url::withHost() - error - at sign in special host input --FILE-- withHost("ex@mple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/host_error_colon_opaque.phpt b/ext/uri/tests/whatwg/modification/host_error_colon_opaque.phpt new file mode 100644 index 000000000000..e27a2544cc0f --- /dev/null +++ b/ext/uri/tests/whatwg/modification/host_error_colon_opaque.phpt @@ -0,0 +1,16 @@ +--TEST-- +Test Uri\WhatWg\Url::withHost() - error - colon in opaque host input +--FILE-- +withHost("ex:mple.com"); +} catch (Throwable $e) { + echo $e::class, ': ', $e->getMessage(), "\n"; +} + +?> +--EXPECT-- +Uri\WhatWg\InvalidUrlException: The specified host is malformed diff --git a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special2.phpt b/ext/uri/tests/whatwg/modification/host_error_colon_special.phpt similarity index 63% rename from ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special2.phpt rename to ext/uri/tests/whatwg/modification/host_error_colon_special.phpt index f465bb85f226..5697e1833040 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special2.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_colon_special.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - host - forbidden domain code point +Test Uri\WhatWg\Url::withHost() - error - colon in special host input --FILE-- withHost("ex:mple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/host_error_empty.phpt b/ext/uri/tests/whatwg/modification/host_error_empty.phpt index c280140381d8..f5c80ab7496f 100644 --- a/ext/uri/tests/whatwg/modification/host_error_empty.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_empty.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - host - empty string +Test Uri\WhatWg\Url::withHost() - error - empty string --FILE-- withHost(""); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special3.phpt b/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special3.phpt deleted file mode 100644 index f465bb85f226..000000000000 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special3.phpt +++ /dev/null @@ -1,16 +0,0 @@ ---TEST-- -Test Uri\WhatWg\Url component modification - host - forbidden domain code point ---FILE-- -withHost("ex:mple.com"); -} catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; -} - -?> ---EXPECT-- -Uri\WhatWg\InvalidUrlException: The specified host is malformed diff --git a/ext/uri/tests/whatwg/modification/host_error_null_byte.phpt b/ext/uri/tests/whatwg/modification/host_error_null_byte.phpt index b6f501a201aa..66acd721f7b5 100644 --- a/ext/uri/tests/whatwg/modification/host_error_null_byte.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_null_byte.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - host - null byte +Test Uri\WhatWg\Url::withHost() - error - null byte --FILE-- withHost("h\0st"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/host_error_unset_existing.phpt b/ext/uri/tests/whatwg/modification/host_error_unset_existing.phpt index 719a3756a105..ab8c1cf65bdd 100644 --- a/ext/uri/tests/whatwg/modification/host_error_unset_existing.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_unset_existing.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - host - unsetting existing +Test Uri\WhatWg\Url::withHost() - error - unsetting existing --FILE-- withHost(null); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/host_success_encoded.phpt b/ext/uri/tests/whatwg/modification/host_success_encoded.phpt index e5e30570ba9b..69f53823e914 100644 --- a/ext/uri/tests/whatwg/modification/host_success_encoded.phpt +++ b/ext/uri/tests/whatwg/modification/host_success_encoded.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - host - URL encoded characters +Test Uri\WhatWg\Url::withHost() - success - percent-encoded characters --FILE-- withScheme("0"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; var_dump($e->errors); } diff --git a/ext/uri/tests/whatwg/modification/password_success_auto_encoded.phpt b/ext/uri/tests/whatwg/modification/password_success_auto_encoded.phpt index 242c17430101..88d36bdb36ea 100644 --- a/ext/uri/tests/whatwg/modification/password_success_auto_encoded.phpt +++ b/ext/uri/tests/whatwg/modification/password_success_auto_encoded.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - password - characters from the percent encode set +Test Uri\WhatWg\Url::withPassword() - success - characters from the percent-encode set --FILE-- withPort(-1); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/port_error_too_large.phpt b/ext/uri/tests/whatwg/modification/port_error_too_large.phpt index a7270fd5f41b..f641cce37eda 100644 --- a/ext/uri/tests/whatwg/modification/port_error_too_large.phpt +++ b/ext/uri/tests/whatwg/modification/port_error_too_large.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - host - larger than a 16-bit unsigned integer +Test Uri\WhatWg\Url::withPort() - error - larger than a 16-bit unsigned integer --FILE-- withScheme(""); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt b/ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt index 906a99585ad1..1567f047222f 100644 --- a/ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - scheme - URL encoded characters +Test Uri\WhatWg\Url::withScheme() - error - percent-encoded characters --FILE-- withScheme("http%73"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt b/ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt index 90256bbab1c0..278f579aeed9 100644 --- a/ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - scheme - invalid characters +Test Uri\WhatWg\Url::withScheme() - error - invalid characters --FILE-- withScheme("http?"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt b/ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt index 649d318b8973..9b98fa9bfbf9 100644 --- a/ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - scheme - null byte +Test Uri\WhatWg\Url::withScheme() - error - null byte --FILE-- withScheme("sch\0me"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/modification/scheme_success_basic.phpt b/ext/uri/tests/whatwg/modification/scheme_success_basic.phpt index 838769ec30ff..df4413ef6357 100644 --- a/ext/uri/tests/whatwg/modification/scheme_success_basic.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_success_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - scheme - basic case +Test Uri\WhatWg\Url::withScheme() - success - basic case --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/host_error_Invalid.phpt b/ext/uri/tests/whatwg/parsing/host_error_Invalid.phpt index 8444ee9e3e96..fc6a4335c0fb 100644 --- a/ext/uri/tests/whatwg/parsing/host_error_Invalid.phpt +++ b/ext/uri/tests/whatwg/parsing/host_error_Invalid.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - host - invalid code point try { new Uri\WhatWg\Url("https://ex[a]mple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/host_error_empty1.phpt b/ext/uri/tests/whatwg/parsing/host_error_empty1.phpt index 92b317078ebb..acc4f30696a3 100644 --- a/ext/uri/tests/whatwg/parsing/host_error_empty1.phpt +++ b/ext/uri/tests/whatwg/parsing/host_error_empty1.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - host - empty try { new Uri\WhatWg\Url("https://"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/host_error_empty2.phpt b/ext/uri/tests/whatwg/parsing/host_error_empty2.phpt index 726241674fae..2a16305f9ebf 100644 --- a/ext/uri/tests/whatwg/parsing/host_error_empty2.phpt +++ b/ext/uri/tests/whatwg/parsing/host_error_empty2.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - host - empty try { new Uri\WhatWg\Url("https://user:pass@"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/host_error_empty3.phpt b/ext/uri/tests/whatwg/parsing/host_error_empty3.phpt index 90f2738148f4..f3f8458e8645 100644 --- a/ext/uri/tests/whatwg/parsing/host_error_empty3.phpt +++ b/ext/uri/tests/whatwg/parsing/host_error_empty3.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - host - empty try { new Uri\WhatWg\Url("/"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/host_error_ipvfuture.phpt b/ext/uri/tests/whatwg/parsing/host_error_ipvfuture.phpt index 959aa0c4442b..9595a6bce61a 100644 --- a/ext/uri/tests/whatwg/parsing/host_error_ipvfuture.phpt +++ b/ext/uri/tests/whatwg/parsing/host_error_ipvfuture.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - host - IPvFuture try { new Uri\WhatWg\Url("https://[v7.host]"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt b/ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt index f450d26c4164..d65d623ffb0d 100644 --- a/ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt +++ b/ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\WhatWg\Url parsing - basic - URL contains null byte +Test Uri\WhatWg\Url parsing - host - null byte --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/host_success_empty4.phpt b/ext/uri/tests/whatwg/parsing/host_success_empty4.phpt index 25a28a9750c4..4129fa5d20b9 100644 --- a/ext/uri/tests/whatwg/parsing/host_success_empty4.phpt +++ b/ext/uri/tests/whatwg/parsing/host_success_empty4.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - host - empty try { new Uri\WhatWg\Url("///"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/path_error_relative_reference.phpt b/ext/uri/tests/whatwg/parsing/path_error_relative_url.phpt similarity index 64% rename from ext/uri/tests/whatwg/parsing/path_error_relative_reference.phpt rename to ext/uri/tests/whatwg/parsing/path_error_relative_url.phpt index 8e6c6fd3842e..b61cecb9341e 100644 --- a/ext/uri/tests/whatwg/parsing/path_error_relative_reference.phpt +++ b/ext/uri/tests/whatwg/parsing/path_error_relative_url.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\WhatWg\Url parsing - path - relative reference +Test Uri\WhatWg\Url parsing - path - relative-URL --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/path_error_relative_reference_absolute.phpt b/ext/uri/tests/whatwg/parsing/path_error_relative_url_absolute.phpt similarity index 64% rename from ext/uri/tests/whatwg/parsing/path_error_relative_reference_absolute.phpt rename to ext/uri/tests/whatwg/parsing/path_error_relative_url_absolute.phpt index 01d549210d9f..1f40dfb945f4 100644 --- a/ext/uri/tests/whatwg/parsing/path_error_relative_reference_absolute.phpt +++ b/ext/uri/tests/whatwg/parsing/path_error_relative_url_absolute.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\WhatWg\Url parsing - path - relative reference +Test Uri\WhatWg\Url parsing - path - relative-URL --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/path_error_relative_reference_only_query_fragment.phpt b/ext/uri/tests/whatwg/parsing/path_error_relative_url_only_query_fragment.phpt similarity index 65% rename from ext/uri/tests/whatwg/parsing/path_error_relative_reference_only_query_fragment.phpt rename to ext/uri/tests/whatwg/parsing/path_error_relative_url_only_query_fragment.phpt index 9c6a7a7906b2..b0994261d257 100644 --- a/ext/uri/tests/whatwg/parsing/path_error_relative_reference_only_query_fragment.phpt +++ b/ext/uri/tests/whatwg/parsing/path_error_relative_url_only_query_fragment.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\WhatWg\Url parsing - path - relative reference +Test Uri\WhatWg\Url parsing - path - relative-URL --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/port_error_multibyte.phpt b/ext/uri/tests/whatwg/parsing/port_error_multibyte.phpt index 8175f2ca992a..886ed4f265ee 100644 --- a/ext/uri/tests/whatwg/parsing/port_error_multibyte.phpt +++ b/ext/uri/tests/whatwg/parsing/port_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - port - multibyte try { new Uri\WhatWg\Url("https://example.com:Ȏ"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/port_error_negative.phpt b/ext/uri/tests/whatwg/parsing/port_error_negative.phpt index bb23476db57c..44557c20635e 100644 --- a/ext/uri/tests/whatwg/parsing/port_error_negative.phpt +++ b/ext/uri/tests/whatwg/parsing/port_error_negative.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - port - negative value try { new Uri\WhatWg\Url("http://example.com:-1"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/port_error_percent_encoded.phpt b/ext/uri/tests/whatwg/parsing/port_error_percent_encoded.phpt index 874211ccb1cf..ee22ec0caa4e 100644 --- a/ext/uri/tests/whatwg/parsing/port_error_percent_encoded.phpt +++ b/ext/uri/tests/whatwg/parsing/port_error_percent_encoded.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\WhatWg\Url parsing - port - percent encoded character +Test Uri\WhatWg\Url parsing - port - percent-encoded character --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/port_error_user_info_wrong_place.phpt b/ext/uri/tests/whatwg/parsing/port_error_user_info_wrong_place.phpt index f0f79670230d..f20bef470d52 100644 --- a/ext/uri/tests/whatwg/parsing/port_error_user_info_wrong_place.phpt +++ b/ext/uri/tests/whatwg/parsing/port_error_user_info_wrong_place.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - port - user info component is in wrong place try { var_dump(new Uri\WhatWg\Url("https://example.com:8080@username:password")); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_empty.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_empty.phpt index 023c1d3fab9d..f5f39669558b 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_empty.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_empty.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - empty try { new Uri\WhatWg\Url("://example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_invalid.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_invalid.phpt index 9c69b08161ef..7b16223f2d25 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_invalid.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_invalid.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - invalid character try { new Uri\WhatWg\Url("http&://example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_multibyte.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_multibyte.phpt index 517bbb410596..d814c849b9bd 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_multibyte.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - multibyte code point try { new Uri\WhatWg\Url("ƕŢŢƤƨ://example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_null_byte.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_null_byte.phpt index 5674c1f33093..13428f0e6b68 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_null_byte.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_null_byte.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - null byte try { new Uri\WhatWg\Url("ht\0tp://example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_only1.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_only1.phpt index 92832f65a019..2caf11fab36b 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_only1.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_only1.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - only scheme try { new Uri\WhatWg\Url("http:"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_only2.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_only2.phpt index 22ab6fc53515..fa21e6d2490b 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_only2.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_only2.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - only scheme try { new Uri\WhatWg\Url("http:/"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_percent_encoded.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_percent_encoded.phpt index a0324edd3701..ff857b3c972b 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_percent_encoded.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_percent_encoded.phpt @@ -1,12 +1,12 @@ --TEST-- -Test Uri\WhatWg\Url parsing - scheme - percent encoded character +Test Uri\WhatWg\Url parsing - scheme - percent-encoded character --FILE-- getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/parsing/scheme_error_special.phpt b/ext/uri/tests/whatwg/parsing/scheme_error_special.phpt index 9966ad6248e5..5196c92c262c 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_special.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_special.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - invalid character try { new Uri\WhatWg\Url("hÁttp://example.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/reference_resolution/parse_success_absolute_with_base.phpt b/ext/uri/tests/whatwg/reference_resolution/parse_success_absolute_url_with_base.phpt similarity index 86% rename from ext/uri/tests/whatwg/reference_resolution/parse_success_absolute_with_base.phpt rename to ext/uri/tests/whatwg/reference_resolution/parse_success_absolute_url_with_base.phpt index 0c293c6ba545..994a05cdc2be 100644 --- a/ext/uri/tests/whatwg/reference_resolution/parse_success_absolute_with_base.phpt +++ b/ext/uri/tests/whatwg/reference_resolution/parse_success_absolute_url_with_base.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url reference resolution - parse() - absolute URL with base URL +Test Uri\WhatWg\Url::parse() - success - absolute URL with base URL --FILE-- resolve("https://ex\0mple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> diff --git a/ext/uri/tests/whatwg/reference_resolution/resolve_error_ipv4_too_many_parts.phpt b/ext/uri/tests/whatwg/reference_resolution/resolve_error_ipv4_too_many_parts.phpt index fdcd96ef0b81..6213f32417df 100644 --- a/ext/uri/tests/whatwg/reference_resolution/resolve_error_ipv4_too_many_parts.phpt +++ b/ext/uri/tests/whatwg/reference_resolution/resolve_error_ipv4_too_many_parts.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url reference resolution - resolve() - IPv4 with too many parts +Test Uri\WhatWg\Url::resolve() - error - IPv4 with too many parts --FILE--