From bef90052e60d7e648cc1b83292f9d034dd18fc2a Mon Sep 17 00:00:00 2001 From: NickSdot Date: Tue, 1 Sep 2026 21:22:19 +0800 Subject: [PATCH 01/14] review: unified titles (unrelated tests) --- ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt | 2 +- ext/uri/tests/rfc3986/builder/basic_success_with_base.phpt | 2 +- ext/uri/tests/rfc3986/builder/host_error_percent_encoding2.phpt | 2 +- ext/uri/tests/rfc3986/builder/host_success_regname.phpt | 2 +- ext/uri/tests/rfc3986/general/array_cast_success.phpt | 2 +- ext/uri/tests/rfc3986/general/clone_success.phpt | 2 +- ext/uri/tests/rfc3986/general/extension_error.phpt | 2 +- .../rfc3986/general/instantiate_without_constructor_error.phpt | 2 +- ext/uri/tests/rfc3986/getters/host_type_success_ip_future.phpt | 2 +- .../getters/uri_type_success_absolute_path_reference.phpt | 2 +- .../getters/uri_type_success_network_path_reference.phpt | 2 +- .../getters/uri_type_success_relative_path_reference.phpt | 2 +- ext/uri/tests/rfc3986/getters/uri_type_success_uri_basic.phpt | 2 +- .../rfc3986/getters/uri_type_success_uri_empty_authority.phpt | 2 +- .../rfc3986/getters/uri_type_success_uri_no_authority.phpt | 2 +- ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt | 2 +- ext/uri/tests/rfc3986/modification/fragment_success_empty.phpt | 2 +- .../tests/rfc3986/modification/fragment_success_encoded.phpt | 2 +- .../tests/rfc3986/modification/fragment_success_existing.phpt | 2 +- .../rfc3986/modification/fragment_success_unset_existing.phpt | 2 +- .../modification/fragment_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_error_reserved.phpt | 2 +- .../rfc3986/modification/host_error_unset_with_userinfo.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_ip_future.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_ipv4.phpt | 2 +- .../tests/rfc3986/modification/host_success_ipv4_to_ipv6.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_ipv6.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_new.phpt | 2 +- .../modification/host_success_percent_encoded_reserved.phpt | 2 +- .../tests/rfc3986/modification/host_success_unset_existing.phpt | 2 +- .../rfc3986/modification/host_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_error_null_byte.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_error_unicode.phpt | 2 +- .../rfc3986/modification/path_error_without_leading_slash.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_email.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_error_missing_host.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_error_negative.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_success_empty_host.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_success_new.phpt | 2 +- .../tests/rfc3986/modification/port_success_unset_existing.phpt | 2 +- .../rfc3986/modification/port_success_unset_non_existent.phpt | 2 +- .../rfc3986/modification/port_success_unset_without_host.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_error_unicode.phpt | 2 +- .../modification/query_success_context_sensitive_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_success_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_success_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_success_existing.phpt | 2 +- .../rfc3986/modification/query_success_unset_existing.phpt | 2 +- .../rfc3986/modification/query_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/roundtrip_special_case1.phpt | 2 +- ext/uri/tests/rfc3986/modification/roundtrip_special_case2.phpt | 2 +- ext/uri/tests/rfc3986/modification/roundtrip_special_case3.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_error_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_success_basic.phpt | 2 +- .../rfc3986/modification/scheme_success_unset_existing.phpt | 2 +- .../rfc3986/modification/scheme_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/userinfo_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/userinfo_success_empty.phpt | 2 +- .../tests/rfc3986/modification/userinfo_success_encoded.phpt | 2 +- .../tests/rfc3986/modification/userinfo_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/userinfo_success_new.phpt | 2 +- .../rfc3986/modification/userinfo_success_unset_existing.phpt | 2 +- .../modification/userinfo_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/parsing/port_error_percent_encoded.phpt | 2 +- ext/uri/tests/rfc3986/parsing/scheme_error_percent_encoded.phpt | 2 +- .../rfc3986/reference_resolution/resolve_error_unicode.phpt | 2 +- ext/uri/tests/rfc3986/serialization/basic_success.phpt | 2 +- ext/uri/tests/whatwg/builder/host_error_percent_encoding2.phpt | 2 +- ext/uri/tests/whatwg/builder/host_error_percent_encoding3.phpt | 2 +- ext/uri/tests/whatwg/builder/host_success_regname.phpt | 2 +- ext/uri/tests/whatwg/equivalence/equals_true_identical.phpt | 2 +- .../exceptions/invalid_url_exception_constructor_reentry.phpt | 2 +- .../exceptions/url_validation_error_constructor_reentry.phpt | 2 +- ext/uri/tests/whatwg/general/array_cast_success.phpt | 2 +- ext/uri/tests/whatwg/general/clone_success.phpt | 2 +- ext/uri/tests/whatwg/general/extension_error.phpt | 2 +- .../whatwg/general/instantiate_without_constructor_error.phpt | 2 +- ext/uri/tests/whatwg/general/memory_management.phpt | 2 +- .../tests/whatwg/modification/fragment_success_auto_encode.phpt | 2 +- ext/uri/tests/whatwg/modification/fragment_success_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/fragment_success_encoded.phpt | 2 +- .../tests/whatwg/modification/fragment_success_existing.phpt | 2 +- .../tests/whatwg/modification/fragment_success_hashmark.phpt | 2 +- .../tests/whatwg/modification/fragment_success_null_byte.phpt | 2 +- ext/uri/tests/whatwg/modification/fragment_success_unicode.phpt | 2 +- .../whatwg/modification/fragment_success_unset_existing.phpt | 2 +- .../modification/fragment_success_unset_non_existent.phpt | 2 +- .../modification/fragment_success_with_leading_hashmark.phpt | 2 +- ext/uri/tests/whatwg/modification/host_error_empty.phpt | 2 +- .../host_error_forbidden_host_codepoint_opaque1.phpt | 2 +- .../host_error_forbidden_host_codepoint_opaque2.phpt | 2 +- .../host_error_forbidden_host_codepoint_opaque3.phpt | 2 +- .../host_error_forbidden_host_codepoint_special1.phpt | 2 +- .../host_error_forbidden_host_codepoint_special2.phpt | 2 +- .../host_error_forbidden_host_codepoint_special3.phpt | 2 +- ext/uri/tests/whatwg/modification/host_error_null_byte.phpt | 2 +- .../tests/whatwg/modification/host_error_unset_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_idna.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_ipv4.phpt | 2 +- .../tests/whatwg/modification/host_success_ipv4_to_ipv6.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_ipv6.phpt | 2 +- .../tests/whatwg/modification/multiple_error_with_warnings.phpt | 2 +- .../whatwg/modification/password_success_auto_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/password_success_empty.phpt | 2 +- .../tests/whatwg/modification/password_success_empty_host.phpt | 2 +- ext/uri/tests/whatwg/modification/password_success_encoded.phpt | 2 +- .../tests/whatwg/modification/password_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/password_success_new.phpt | 2 +- .../tests/whatwg/modification/password_success_null_byte.phpt | 2 +- .../whatwg/modification/password_success_unset_existing.phpt | 2 +- .../whatwg/modification/password_success_unset_existing2.phpt | 2 +- .../modification/password_success_unset_non_existent1.phpt | 2 +- .../modification/password_success_unset_non_existent2.phpt | 2 +- .../tests/whatwg/modification/path_success_auto_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_null_byte.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_unicode.phpt | 2 +- .../whatwg/modification/path_success_without_leading_slash.phpt | 2 +- ext/uri/tests/whatwg/modification/port_error_negative.phpt | 2 +- ext/uri/tests/whatwg/modification/port_error_too_large.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_empty_host.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_file_scheme.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_new.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_special1.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_special2.phpt | 2 +- .../tests/whatwg/modification/port_success_unset_existing.phpt | 2 +- .../whatwg/modification/port_success_unset_non_existent.phpt | 2 +- .../tests/whatwg/modification/query_success_auto_encoded.phpt | 2 +- .../modification/query_success_context_sensitive_reserved.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_null_byte.phpt | 2 +- .../tests/whatwg/modification/query_success_question_mark.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_unicode.phpt | 2 +- .../tests/whatwg/modification/query_success_unset_existing.phpt | 2 +- .../whatwg/modification/query_success_unset_non_existent.phpt | 2 +- .../modification/query_success_with_leading_question_mark.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_success_basic.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_success_colon.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_success_full.phpt | 2 +- .../whatwg/modification/username_success_auto_encoded.phpt | 2 +- .../tests/whatwg/modification/username_success_empty_host.phpt | 2 +- ext/uri/tests/whatwg/modification/username_success_encoded.phpt | 2 +- .../tests/whatwg/modification/username_success_existing.phpt | 2 +- .../tests/whatwg/modification/username_success_file_scheme.phpt | 2 +- ext/uri/tests/whatwg/modification/username_success_new.phpt | 2 +- .../tests/whatwg/modification/username_success_null_byte.phpt | 2 +- .../whatwg/modification/username_success_unset_existing.phpt | 2 +- .../whatwg/modification/username_success_unset_existing2.phpt | 2 +- .../modification/username_success_unset_non_existent1.phpt | 2 +- .../modification/username_success_unset_non_existent2.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt | 2 +- ext/uri/tests/whatwg/parsing/port_error_percent_encoded.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_percent_encoded.phpt | 2 +- ext/uri/tests/whatwg/serialization/basic_success.phpt | 2 +- ext/uri/tests/zend/internal_api_error_whatwg_invalid_url.phpt | 2 +- ext/uri/tests/zend/internal_api_success_parse_url_parsing.phpt | 2 +- ext/uri/tests/zend/internal_api_success_rfc3986_large_port.phpt | 2 +- 180 files changed, 180 insertions(+), 180 deletions(-) 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..d19ba7f79abe 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-- Date: Tue, 1 Sep 2026 21:45:30 +0800 Subject: [PATCH 02/14] review: formatting (unrelated tests) --- ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt | 2 +- .../rfc3986/builder/fragment_error_special_char.phpt | 2 +- .../rfc3986/builder/fragment_error_unicode_char.phpt | 2 +- .../rfc3986/builder/host_error_percent_encoding1.phpt | 2 +- .../rfc3986/builder/host_error_percent_encoding2.phpt | 2 +- .../rfc3986/builder/path_error_first_segment_colon.phpt | 2 +- .../rfc3986/builder/path_error_leading_double_slash.phpt | 2 +- .../rfc3986/builder/path_error_missing_leading_slash.phpt | 2 +- .../tests/rfc3986/builder/path_error_special_char.phpt | 2 +- .../tests/rfc3986/builder/port_error_missing_host.phpt | 2 +- ext/uri/tests/rfc3986/builder/port_error_negative.phpt | 2 +- .../tests/rfc3986/builder/query_error_special_char.phpt | 2 +- .../tests/rfc3986/builder/query_error_unicode_char.phpt | 2 +- ext/uri/tests/rfc3986/builder/scheme_error_empty.phpt | 2 +- .../tests/rfc3986/builder/scheme_error_first_char.phpt | 2 +- .../tests/rfc3986/builder/scheme_error_special_char.phpt | 2 +- .../rfc3986/builder/userinfo_error_missing_host.phpt | 2 +- .../rfc3986/builder/userinfo_error_percent_encoding.phpt | 2 +- .../rfc3986/builder/userinfo_error_special_char.phpt | 2 +- .../rfc3986/modification/fragment_error_reserved.phpt | 2 +- .../rfc3986/modification/fragment_error_unicode.phpt | 2 +- .../tests/rfc3986/modification/host_error_reserved.phpt | 2 +- .../tests/rfc3986/modification/path_error_null_byte.phpt | 2 +- .../tests/rfc3986/modification/path_error_reserved.phpt | 2 +- .../tests/rfc3986/modification/path_error_unicode.phpt | 2 +- .../modification/path_error_without_leading_slash.phpt | 2 +- .../tests/rfc3986/modification/port_error_negative.phpt | 2 +- .../tests/rfc3986/modification/query_error_reserved.phpt | 2 +- .../tests/rfc3986/modification/query_error_unicode.phpt | 2 +- .../tests/rfc3986/modification/scheme_error_empty.phpt | 2 +- .../tests/rfc3986/modification/scheme_error_encoded.phpt | 2 +- .../tests/rfc3986/modification/scheme_error_reserved.phpt | 2 +- .../rfc3986/modification/userinfo_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/parsing/basic_error_multibyte.phpt | 2 +- ext/uri/tests/rfc3986/parsing/basic_error_null_byte.phpt | 2 +- ext/uri/tests/rfc3986/parsing/host_error_multibyte.phpt | 2 +- ext/uri/tests/rfc3986/parsing/host_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/parsing/path_error_multibyte.phpt | 2 +- ext/uri/tests/rfc3986/parsing/path_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/parsing/port_error_multibyte.phpt | 2 +- ext/uri/tests/rfc3986/parsing/port_error_negative.phpt | 2 +- ext/uri/tests/rfc3986/parsing/port_error_overflow.phpt | 8 ++++---- .../tests/rfc3986/parsing/port_error_percent_encoded.phpt | 2 +- .../rfc3986/parsing/port_error_user_info_wrong_place.phpt | 2 +- ext/uri/tests/rfc3986/parsing/scheme_error_empty.phpt | 2 +- ext/uri/tests/rfc3986/parsing/scheme_error_multibyte.phpt | 2 +- .../rfc3986/parsing/scheme_error_percent_encoded.phpt | 2 +- ext/uri/tests/rfc3986/parsing/scheme_error_reserved.phpt | 2 +- .../rfc3986/parsing/userinfo_error_extended_ascii.phpt | 2 +- .../tests/rfc3986/parsing/userinfo_error_multibyte.phpt | 2 +- .../tests/rfc3986/parsing/userinfo_error_reserved.phpt | 2 +- .../reference_resolution/resolve_error_null_byte.phpt | 2 +- ext/uri/tests/whatwg/modification/host_error_empty.phpt | 2 +- .../host_error_forbidden_host_codepoint_opaque1.phpt | 2 +- .../host_error_forbidden_host_codepoint_special1.phpt | 2 +- .../host_error_forbidden_host_codepoint_special2.phpt | 2 +- .../host_error_forbidden_host_codepoint_special3.phpt | 2 +- .../tests/whatwg/modification/host_error_null_byte.phpt | 2 +- .../whatwg/modification/host_error_unset_existing.phpt | 2 +- .../whatwg/modification/multiple_error_with_warnings.phpt | 2 +- .../tests/whatwg/modification/port_error_negative.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_empty.phpt | 2 +- .../tests/whatwg/modification/scheme_error_encoded.phpt | 2 +- .../tests/whatwg/modification/scheme_error_invalid.phpt | 2 +- .../tests/whatwg/modification/scheme_error_null_byte.phpt | 2 +- ext/uri/tests/whatwg/parsing/basic_error_empty.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_error_Invalid.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_error_empty1.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_error_empty2.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_error_empty3.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_error_ipvfuture.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt | 2 +- ext/uri/tests/whatwg/parsing/host_success_empty4.phpt | 2 +- .../whatwg/parsing/path_error_relative_reference.phpt | 2 +- .../parsing/path_error_relative_reference_absolute.phpt | 2 +- ...path_error_relative_reference_only_query_fragment.phpt | 2 +- ext/uri/tests/whatwg/parsing/port_error_multibyte.phpt | 2 +- ext/uri/tests/whatwg/parsing/port_error_negative.phpt | 2 +- .../tests/whatwg/parsing/port_error_percent_encoded.phpt | 2 +- .../whatwg/parsing/port_error_user_info_wrong_place.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_empty.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_invalid.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_multibyte.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_null_byte.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_only1.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_only2.phpt | 2 +- .../whatwg/parsing/scheme_error_percent_encoded.phpt | 2 +- ext/uri/tests/whatwg/parsing/scheme_error_special.phpt | 2 +- .../resolve_error_host_null_byte.phpt | 2 +- 89 files changed, 92 insertions(+), 92 deletions(-) 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 d19ba7f79abe..655f57700abc 100644 --- a/ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt +++ b/ext/uri/tests/rfc3986/builder/basic_error_with_base.phpt @@ -9,7 +9,7 @@ $builder = new Uri\Rfc3986\UriBuilder() try { $builder->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/fragment_error_special_char.phpt b/ext/uri/tests/rfc3986/builder/fragment_error_special_char.phpt index 8ed2a8938e9a..97ec3d167cb2 100644 --- a/ext/uri/tests/rfc3986/builder/fragment_error_special_char.phpt +++ b/ext/uri/tests/rfc3986/builder/fragment_error_special_char.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->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 d892fefa4cd2..49f29269cff8 100644 --- a/ext/uri/tests/rfc3986/builder/host_error_percent_encoding2.phpt +++ b/ext/uri/tests/rfc3986/builder/host_error_percent_encoding2.phpt @@ -8,7 +8,7 @@ $builder = new Uri\Rfc3986\UriBuilder(); try { $builder->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/path_error_first_segment_colon.phpt b/ext/uri/tests/rfc3986/builder/path_error_first_segment_colon.phpt index 8cce8d471aa1..c95e2ea14446 100644 --- a/ext/uri/tests/rfc3986/builder/path_error_first_segment_colon.phpt +++ b/ext/uri/tests/rfc3986/builder/path_error_first_segment_colon.phpt @@ -9,7 +9,7 @@ $builder->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/modification/fragment_error_reserved.phpt b/ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt index 6297f10488cc..4e1050654c2d 100644 --- a/ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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 97597360d5ab..de0988ebb4d1 100644 --- a/ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt +++ b/ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/host_error_reserved.phpt b/ext/uri/tests/rfc3986/modification/host_error_reserved.phpt index d99a20d04b32..5eaadaf23b26 100644 --- a/ext/uri/tests/rfc3986/modification/host_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/host_error_reserved.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/path_error_null_byte.phpt b/ext/uri/tests/rfc3986/modification/path_error_null_byte.phpt index f3aeaaf226b9..68cc740071db 100644 --- a/ext/uri/tests/rfc3986/modification/path_error_null_byte.phpt +++ b/ext/uri/tests/rfc3986/modification/path_error_null_byte.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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 e82a4f0663ff..b0576af8fc2b 100644 --- a/ext/uri/tests/rfc3986/modification/path_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/path_error_reserved.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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 7f115b21329d..de6006c686e2 100644 --- a/ext/uri/tests/rfc3986/modification/path_error_unicode.phpt +++ b/ext/uri/tests/rfc3986/modification/path_error_unicode.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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 dcbc1514afeb..f396066f100f 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 @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/port_error_negative.phpt b/ext/uri/tests/rfc3986/modification/port_error_negative.phpt index ca192c3dd93f..70a01fb41f41 100644 --- a/ext/uri/tests/rfc3986/modification/port_error_negative.phpt +++ b/ext/uri/tests/rfc3986/modification/port_error_negative.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/query_error_reserved.phpt b/ext/uri/tests/rfc3986/modification/query_error_reserved.phpt index 25b28ec4bbfe..caa3ffb20049 100644 --- a/ext/uri/tests/rfc3986/modification/query_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/query_error_reserved.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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 fc8663099425..1c676b2f5af6 100644 --- a/ext/uri/tests/rfc3986/modification/query_error_unicode.phpt +++ b/ext/uri/tests/rfc3986/modification/query_error_unicode.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/scheme_error_empty.phpt b/ext/uri/tests/rfc3986/modification/scheme_error_empty.phpt index 61dac740c605..8f1ee80e68b7 100644 --- a/ext/uri/tests/rfc3986/modification/scheme_error_empty.phpt +++ b/ext/uri/tests/rfc3986/modification/scheme_error_empty.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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 c601931834a9..c300efa854c8 100644 --- a/ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt +++ b/ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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 85d81e6fb5c9..b199de979a32 100644 --- a/ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/userinfo_error_reserved.phpt b/ext/uri/tests/rfc3986/modification/userinfo_error_reserved.phpt index 56f57c504ea8..31355ddd3078 100644 --- a/ext/uri/tests/rfc3986/modification/userinfo_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/userinfo_error_reserved.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/parsing/basic_error_multibyte.phpt b/ext/uri/tests/rfc3986/parsing/basic_error_multibyte.phpt index cb6007c844aa..081081c805f4 100644 --- a/ext/uri/tests/rfc3986/parsing/basic_error_multibyte.phpt +++ b/ext/uri/tests/rfc3986/parsing/basic_error_multibyte.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - basic - multibyte character try { new Uri\Rfc3986\Uri("🐘"); } catch (Throwable $e) { - echo $e::class, ": ", $e->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_reserved.phpt b/ext/uri/tests/rfc3986/parsing/host_error_reserved.phpt index 0568a027f5b9..01f041c188fd 100644 --- a/ext/uri/tests/rfc3986/parsing/host_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/parsing/host_error_reserved.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - host - reserved character try { new Uri\Rfc3986\Uri("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/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 3698174313e8..caa5b1982735 100644 --- a/ext/uri/tests/rfc3986/parsing/port_error_percent_encoded.phpt +++ b/ext/uri/tests/rfc3986/parsing/port_error_percent_encoded.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - port - percent-encoded character try { new Uri\Rfc3986\Uri("https://example.com:%30"); } 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_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/scheme_error_empty.phpt b/ext/uri/tests/rfc3986/parsing/scheme_error_empty.phpt index ba686e7fafca..f2b7f93613b3 100644 --- a/ext/uri/tests/rfc3986/parsing/scheme_error_empty.phpt +++ b/ext/uri/tests/rfc3986/parsing/scheme_error_empty.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - scheme - empty 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_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 f8529c03952e..80a8be51c480 100644 --- a/ext/uri/tests/rfc3986/parsing/scheme_error_percent_encoded.phpt +++ b/ext/uri/tests/rfc3986/parsing/scheme_error_percent_encoded.phpt @@ -6,7 +6,7 @@ Test Uri\Rfc3986\Uri parsing - scheme - percent-encoded character try { new Uri\Rfc3986\Uri("http%2F://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_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/resolve_error_null_byte.phpt b/ext/uri/tests/rfc3986/reference_resolution/resolve_error_null_byte.phpt index 26f55896c1be..dbbcac8eecb0 100644 --- a/ext/uri/tests/rfc3986/reference_resolution/resolve_error_null_byte.phpt +++ b/ext/uri/tests/rfc3986/reference_resolution/resolve_error_null_byte.phpt @@ -8,7 +8,7 @@ $uri = Uri\Rfc3986\Uri::parse("https://example.com"); try { $uri->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/whatwg/modification/host_error_empty.phpt b/ext/uri/tests/whatwg/modification/host_error_empty.phpt index e125b53a5d57..1a63bdb0f608 100644 --- a/ext/uri/tests/whatwg/modification/host_error_empty.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_empty.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->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_opaque1.phpt b/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque1.phpt index daafbcd8e736..43c6df5e51f9 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque1.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque1.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("foo://example.com"); try { $url = $url->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_forbidden_host_codepoint_special1.phpt index 52c6169dda06..110a52382dc0 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special1.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special1.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url = $url->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_special2.phpt b/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special2.phpt index 677e75d74f08..b307ea5d0e54 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special2.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special2.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url = $url->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_special3.phpt b/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special3.phpt index 677e75d74f08..b307ea5d0e54 100644 --- 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 @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url = $url->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_null_byte.phpt b/ext/uri/tests/whatwg/modification/host_error_null_byte.phpt index 9f58df9fa559..e5c6d86ccbf1 100644 --- a/ext/uri/tests/whatwg/modification/host_error_null_byte.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_null_byte.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->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 fe5657733551..e4e0d79cbecd 100644 --- a/ext/uri/tests/whatwg/modification/host_error_unset_existing.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_unset_existing.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url = $url->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/multiple_error_with_warnings.phpt b/ext/uri/tests/whatwg/modification/multiple_error_with_warnings.phpt index 30b30289edd1..9512b835b2e6 100644 --- a/ext/uri/tests/whatwg/modification/multiple_error_with_warnings.phpt +++ b/ext/uri/tests/whatwg/modification/multiple_error_with_warnings.phpt @@ -12,7 +12,7 @@ $url = new Uri\WhatWg\Url("https://example.com") try { $url->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/port_error_negative.phpt b/ext/uri/tests/whatwg/modification/port_error_negative.phpt index 0cdaccabf4ce..60c07472602f 100644 --- a/ext/uri/tests/whatwg/modification/port_error_negative.phpt +++ b/ext/uri/tests/whatwg/modification/port_error_negative.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->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/scheme_error_empty.phpt b/ext/uri/tests/whatwg/modification/scheme_error_empty.phpt index 25f5e8e24f24..a0352658fa45 100644 --- a/ext/uri/tests/whatwg/modification/scheme_error_empty.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_error_empty.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->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 30e3812372a6..a38c60b4ffd4 100644 --- a/ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->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 b942638c901b..f27dfd5772be 100644 --- a/ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->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 20813c30a4fb..db07d5c9d4f7 100644 --- a/ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt +++ b/ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->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/parsing/basic_error_empty.phpt b/ext/uri/tests/whatwg/parsing/basic_error_empty.phpt index 2b7114baa738..8375e16a9289 100644 --- a/ext/uri/tests/whatwg/parsing/basic_error_empty.phpt +++ b/ext/uri/tests/whatwg/parsing/basic_error_empty.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - basic - empty string 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_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 10582ed6e3ee..d65d623ffb0d 100644 --- a/ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt +++ b/ext/uri/tests/whatwg/parsing/host_error_null_byte.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - host - null byte try { new Uri\WhatWg\Url("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/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_reference.phpt index 8e6c6fd3842e..a4400b44e686 100644 --- a/ext/uri/tests/whatwg/parsing/path_error_relative_reference.phpt +++ b/ext/uri/tests/whatwg/parsing/path_error_relative_reference.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - path - relative reference try { new Uri\WhatWg\Url("foo"); } 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_absolute.phpt b/ext/uri/tests/whatwg/parsing/path_error_relative_reference_absolute.phpt index 01d549210d9f..92f60670ffeb 100644 --- a/ext/uri/tests/whatwg/parsing/path_error_relative_reference_absolute.phpt +++ b/ext/uri/tests/whatwg/parsing/path_error_relative_reference_absolute.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - path - relative reference try { new Uri\WhatWg\Url("/foo"); } 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_only_query_fragment.phpt b/ext/uri/tests/whatwg/parsing/path_error_relative_reference_only_query_fragment.phpt index 9c6a7a7906b2..079368c5a854 100644 --- a/ext/uri/tests/whatwg/parsing/path_error_relative_reference_only_query_fragment.phpt +++ b/ext/uri/tests/whatwg/parsing/path_error_relative_reference_only_query_fragment.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - path - relative reference try { new Uri\WhatWg\Url("?query#fragment"); } 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_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 0e43f187f0c2..ee22ec0caa4e 100644 --- a/ext/uri/tests/whatwg/parsing/port_error_percent_encoded.phpt +++ b/ext/uri/tests/whatwg/parsing/port_error_percent_encoded.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - port - percent-encoded character try { new Uri\WhatWg\Url("https://example.com:%30"); } 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_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 0b8f9f0b0d6a..ff857b3c972b 100644 --- a/ext/uri/tests/whatwg/parsing/scheme_error_percent_encoded.phpt +++ b/ext/uri/tests/whatwg/parsing/scheme_error_percent_encoded.phpt @@ -6,7 +6,7 @@ Test Uri\WhatWg\Url parsing - scheme - percent-encoded character try { new Uri\WhatWg\Url("http%2F://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_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/resolve_error_host_null_byte.phpt b/ext/uri/tests/whatwg/reference_resolution/resolve_error_host_null_byte.phpt index 15b2a141f2fd..6e1ece35c8f0 100644 --- a/ext/uri/tests/whatwg/reference_resolution/resolve_error_host_null_byte.phpt +++ b/ext/uri/tests/whatwg/reference_resolution/resolve_error_host_null_byte.phpt @@ -8,7 +8,7 @@ $url = Uri\WhatWg\Url::parse("https://example.com"); try { $url->resolve("https://ex\0mple.com"); } catch (Throwable $e) { - echo $e::class, ": ", $e->getMessage(), PHP_EOL; + echo $e::class, ': ', $e->getMessage(), "\n"; } ?> From 1ca05359936f93a35ffcb1ad0e8aa774d49ebbbb Mon Sep 17 00:00:00 2001 From: NickSdot Date: Tue, 1 Sep 2026 22:54:01 +0800 Subject: [PATCH 03/14] review: updated wrong title --- .../rfc3986/serialization/unserialize_error_legacy_format.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/uri/tests/rfc3986/serialization/unserialize_error_legacy_format.phpt b/ext/uri/tests/rfc3986/serialization/unserialize_error_legacy_format.phpt index ef76114f2f43..c8cfabf022d1 100644 --- a/ext/uri/tests/rfc3986/serialization/unserialize_error_legacy_format.phpt +++ b/ext/uri/tests/rfc3986/serialization/unserialize_error_legacy_format.phpt @@ -1,5 +1,5 @@ --TEST-- -GH-22046: Uri\Rfc3986\Uri cannot be unserialized with the unsupported C format +Test Uri\Rfc3986\Uri unserialize() - error - unsupported C format --FILE-- Date: Thu, 3 Sep 2026 03:37:40 +0800 Subject: [PATCH 04/14] review: finalised titles --- .../getters/uri_type_success_absolute_path_reference.phpt | 2 +- .../getters/uri_type_success_network_path_reference.phpt | 2 +- .../getters/uri_type_success_relative_path_reference.phpt | 2 +- ext/uri/tests/rfc3986/getters/uri_type_success_uri_basic.phpt | 2 +- .../rfc3986/getters/uri_type_success_uri_empty_authority.phpt | 2 +- .../rfc3986/getters/uri_type_success_uri_no_authority.phpt | 2 +- ext/uri/tests/rfc3986/parsing/host_error_multibyte_emoji.phpt | 2 +- ext/uri/tests/rfc3986/parsing/query_error_multibyte_emoji.phpt | 2 +- .../basic_error_emoji_relative_reference_returns_null.phpt | 2 +- ext/uri/tests/whatwg/parsing/path_error_relative_reference.phpt | 2 +- .../whatwg/parsing/path_error_relative_reference_absolute.phpt | 2 +- .../path_error_relative_reference_only_query_fragment.phpt | 2 +- .../reference_resolution/parse_success_relative_with_base.phpt | 2 +- .../resolve_success_relative_reference.phpt | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ext/uri/tests/rfc3986/getters/uri_type_success_absolute_path_reference.phpt b/ext/uri/tests/rfc3986/getters/uri_type_success_absolute_path_reference.phpt index 655d32616394..1cddc15fa33c 100644 --- a/ext/uri/tests/rfc3986/getters/uri_type_success_absolute_path_reference.phpt +++ b/ext/uri/tests/rfc3986/getters/uri_type_success_absolute_path_reference.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component retrieval - URI type - absolute-path reference +Test Uri\Rfc3986\Uri getter - uri type - Absolute path reference --FILE-- Date: Thu, 3 Sep 2026 04:06:59 +0800 Subject: [PATCH 05/14] review: added methods to titles --- ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/fragment_error_unicode.phpt | 2 +- ext/uri/tests/rfc3986/modification/fragment_success_empty.phpt | 2 +- .../tests/rfc3986/modification/fragment_success_encoded.phpt | 2 +- .../tests/rfc3986/modification/fragment_success_existing.phpt | 2 +- .../rfc3986/modification/fragment_success_unset_existing.phpt | 2 +- .../modification/fragment_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_error_reserved.phpt | 2 +- .../rfc3986/modification/host_error_unset_with_userinfo.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_ip_future.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_ipv4.phpt | 2 +- .../tests/rfc3986/modification/host_success_ipv4_to_ipv6.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_ipv6.phpt | 2 +- ext/uri/tests/rfc3986/modification/host_success_new.phpt | 2 +- .../modification/host_success_percent_encoded_reserved.phpt | 2 +- .../tests/rfc3986/modification/host_success_unset_existing.phpt | 2 +- .../rfc3986/modification/host_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_error_null_byte.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_error_unicode.phpt | 2 +- .../rfc3986/modification/path_error_without_leading_slash.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_email.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/path_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_error_missing_host.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_error_negative.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_success_empty_host.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/port_success_new.phpt | 2 +- .../tests/rfc3986/modification/port_success_unset_existing.phpt | 2 +- .../rfc3986/modification/port_success_unset_non_existent.phpt | 2 +- .../rfc3986/modification/port_success_unset_without_host.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_error_unicode.phpt | 2 +- .../modification/query_success_context_sensitive_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_success_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_success_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/query_success_existing.phpt | 2 +- .../rfc3986/modification/query_success_unset_existing.phpt | 2 +- .../rfc3986/modification/query_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/roundtrip_special_case1.phpt | 2 +- ext/uri/tests/rfc3986/modification/roundtrip_special_case2.phpt | 2 +- ext/uri/tests/rfc3986/modification/roundtrip_special_case3.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_error_empty.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_error_encoded.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/scheme_success_basic.phpt | 2 +- .../rfc3986/modification/scheme_success_unset_existing.phpt | 2 +- .../rfc3986/modification/scheme_success_unset_non_existent.phpt | 2 +- ext/uri/tests/rfc3986/modification/userinfo_error_reserved.phpt | 2 +- ext/uri/tests/rfc3986/modification/userinfo_success_empty.phpt | 2 +- .../tests/rfc3986/modification/userinfo_success_encoded.phpt | 2 +- .../tests/rfc3986/modification/userinfo_success_existing.phpt | 2 +- ext/uri/tests/rfc3986/modification/userinfo_success_new.phpt | 2 +- .../rfc3986/modification/userinfo_success_unset_existing.phpt | 2 +- .../modification/userinfo_success_unset_non_existent.phpt | 2 +- 60 files changed, 60 insertions(+), 60 deletions(-) diff --git a/ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt b/ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt index 4e1050654c2d..201ebe23ffbb 100644 --- a/ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt +++ b/ext/uri/tests/rfc3986/modification/fragment_error_reserved.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri component modification - fragment - error - reserved characters +Test Uri\Rfc3986\Uri::withFragment() - error - reserved characters --FILE-- Date: Thu, 3 Sep 2026 04:16:34 +0800 Subject: [PATCH 06/14] review: added methods to titles --- .../tests/whatwg/modification/fragment_success_auto_encode.phpt | 2 +- ext/uri/tests/whatwg/modification/fragment_success_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/fragment_success_encoded.phpt | 2 +- .../tests/whatwg/modification/fragment_success_existing.phpt | 2 +- .../tests/whatwg/modification/fragment_success_hashmark.phpt | 2 +- .../tests/whatwg/modification/fragment_success_null_byte.phpt | 2 +- ext/uri/tests/whatwg/modification/fragment_success_unicode.phpt | 2 +- .../whatwg/modification/fragment_success_unset_existing.phpt | 2 +- .../modification/fragment_success_unset_non_existent.phpt | 2 +- .../modification/fragment_success_with_leading_hashmark.phpt | 2 +- ext/uri/tests/whatwg/modification/host_error_empty.phpt | 2 +- .../host_error_forbidden_host_codepoint_opaque1.phpt | 2 +- .../host_error_forbidden_host_codepoint_opaque2.phpt | 2 +- .../host_error_forbidden_host_codepoint_opaque3.phpt | 2 +- .../host_error_forbidden_host_codepoint_special1.phpt | 2 +- .../host_error_forbidden_host_codepoint_special2.phpt | 2 +- .../host_error_forbidden_host_codepoint_special3.phpt | 2 +- ext/uri/tests/whatwg/modification/host_error_null_byte.phpt | 2 +- .../tests/whatwg/modification/host_error_unset_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_idna.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_ipv4.phpt | 2 +- .../tests/whatwg/modification/host_success_ipv4_to_ipv6.phpt | 2 +- ext/uri/tests/whatwg/modification/host_success_ipv6.phpt | 2 +- .../tests/whatwg/modification/multiple_error_with_warnings.phpt | 2 +- .../whatwg/modification/password_success_auto_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/password_success_empty.phpt | 2 +- .../tests/whatwg/modification/password_success_empty_host.phpt | 2 +- ext/uri/tests/whatwg/modification/password_success_encoded.phpt | 2 +- .../tests/whatwg/modification/password_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/password_success_new.phpt | 2 +- .../tests/whatwg/modification/password_success_null_byte.phpt | 2 +- .../whatwg/modification/password_success_unset_existing.phpt | 2 +- .../whatwg/modification/password_success_unset_existing2.phpt | 2 +- .../modification/password_success_unset_non_existent1.phpt | 2 +- .../modification/password_success_unset_non_existent2.phpt | 2 +- .../tests/whatwg/modification/path_success_auto_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_null_byte.phpt | 2 +- ext/uri/tests/whatwg/modification/path_success_unicode.phpt | 2 +- .../whatwg/modification/path_success_without_leading_slash.phpt | 2 +- ext/uri/tests/whatwg/modification/port_error_negative.phpt | 2 +- ext/uri/tests/whatwg/modification/port_error_too_large.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_empty_host.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_file_scheme.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_new.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_special1.phpt | 2 +- ext/uri/tests/whatwg/modification/port_success_special2.phpt | 2 +- .../tests/whatwg/modification/port_success_unset_existing.phpt | 2 +- .../whatwg/modification/port_success_unset_non_existent.phpt | 2 +- .../tests/whatwg/modification/query_success_auto_encoded.phpt | 2 +- .../modification/query_success_context_sensitive_reserved.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_existing.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_null_byte.phpt | 2 +- .../tests/whatwg/modification/query_success_question_mark.phpt | 2 +- ext/uri/tests/whatwg/modification/query_success_unicode.phpt | 2 +- .../tests/whatwg/modification/query_success_unset_existing.phpt | 2 +- .../whatwg/modification/query_success_unset_non_existent.phpt | 2 +- .../modification/query_success_with_leading_question_mark.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_empty.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_encoded.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_invalid.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_error_null_byte.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_success_basic.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_success_colon.phpt | 2 +- ext/uri/tests/whatwg/modification/scheme_success_full.phpt | 2 +- .../whatwg/modification/username_success_auto_encoded.phpt | 2 +- .../tests/whatwg/modification/username_success_empty_host.phpt | 2 +- ext/uri/tests/whatwg/modification/username_success_encoded.phpt | 2 +- .../tests/whatwg/modification/username_success_existing.phpt | 2 +- .../tests/whatwg/modification/username_success_file_scheme.phpt | 2 +- ext/uri/tests/whatwg/modification/username_success_new.phpt | 2 +- .../tests/whatwg/modification/username_success_null_byte.phpt | 2 +- .../whatwg/modification/username_success_unset_existing.phpt | 2 +- .../whatwg/modification/username_success_unset_existing2.phpt | 2 +- .../modification/username_success_unset_non_existent1.phpt | 2 +- .../modification/username_success_unset_non_existent2.phpt | 2 +- 83 files changed, 83 insertions(+), 83 deletions(-) diff --git a/ext/uri/tests/whatwg/modification/fragment_success_auto_encode.phpt b/ext/uri/tests/whatwg/modification/fragment_success_auto_encode.phpt index 08185cdb8586..1184bc2d8931 100644 --- a/ext/uri/tests/whatwg/modification/fragment_success_auto_encode.phpt +++ b/ext/uri/tests/whatwg/modification/fragment_success_auto_encode.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url component modification - fragment - success - characters from the percent-encode set +Test Uri\WhatWg\Url::withFragment() - success - characters from the percent-encode set --FILE-- Date: Thu, 3 Sep 2026 04:42:00 +0800 Subject: [PATCH 07/14] review: updated outdated title This test was sourced from gh22046.phpt which first was renamed and moved, then reverted. This adjusts the naming. Part of the test is now in both. Reason: should not remove the test case here just because a bug test has it as well. --- .../whatwg/serialization/unserialize_error_legacy_format.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/uri/tests/whatwg/serialization/unserialize_error_legacy_format.phpt b/ext/uri/tests/whatwg/serialization/unserialize_error_legacy_format.phpt index 6de1d9d17562..5cb3b14a7663 100644 --- a/ext/uri/tests/whatwg/serialization/unserialize_error_legacy_format.phpt +++ b/ext/uri/tests/whatwg/serialization/unserialize_error_legacy_format.phpt @@ -1,5 +1,5 @@ --TEST-- -GH-22046: Uri\WhatWg\Url cannot be unserialized with the unsupported C format +Test Uri\WhatWg\Url unserialize() - error - unsupported C format --FILE-- Date: Thu, 3 Sep 2026 04:46:51 +0800 Subject: [PATCH 08/14] review: unified title with whatwg and builders --- ext/uri/tests/rfc3986/modification/port_error_negative.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/uri/tests/rfc3986/modification/port_error_negative.phpt b/ext/uri/tests/rfc3986/modification/port_error_negative.phpt index 4b779946b911..74d370433d91 100644 --- a/ext/uri/tests/rfc3986/modification/port_error_negative.phpt +++ b/ext/uri/tests/rfc3986/modification/port_error_negative.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\Rfc3986\Uri::withPort() - error - too small number +Test Uri\Rfc3986\Uri::withPort() - error - negative number --FILE-- Date: Thu, 3 Sep 2026 04:55:58 +0800 Subject: [PATCH 09/14] review: renamed wrongly "error" marked to "success" --- ...codepoint_opaque2.phpt => host_success_hashmark_opaque.phpt} | 2 +- ...odepoint_opaque3.phpt => host_success_hashmark_special.phpt} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename ext/uri/tests/whatwg/modification/{host_error_forbidden_host_codepoint_opaque2.phpt => host_success_hashmark_opaque.phpt} (76%) rename ext/uri/tests/whatwg/modification/{host_error_forbidden_host_codepoint_opaque3.phpt => host_success_hashmark_special.phpt} (76%) diff --git a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque2.phpt b/ext/uri/tests/whatwg/modification/host_success_hashmark_opaque.phpt similarity index 76% rename from ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque2.phpt rename to ext/uri/tests/whatwg/modification/host_success_hashmark_opaque.phpt index a85386e01812..1bb99b08e447 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque2.phpt +++ b/ext/uri/tests/whatwg/modification/host_success_hashmark_opaque.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url::withHost() - error - forbidden host code point +Test Uri\WhatWg\Url::withHost() - success - hash mark in opaque host input --FILE-- Date: Thu, 3 Sep 2026 04:56:56 +0800 Subject: [PATCH 10/14] review: updated duplicate with opaque colon --- ...t_codepoint_special3.phpt => host_error_colon_opaque.phpt} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename ext/uri/tests/whatwg/modification/{host_error_forbidden_host_codepoint_special3.phpt => host_error_colon_opaque.phpt} (65%) diff --git a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special3.phpt b/ext/uri/tests/whatwg/modification/host_error_colon_opaque.phpt similarity index 65% rename from ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special3.phpt rename to ext/uri/tests/whatwg/modification/host_error_colon_opaque.phpt index a505e33ed247..e27a2544cc0f 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_special3.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_colon_opaque.phpt @@ -1,9 +1,9 @@ --TEST-- -Test Uri\WhatWg\Url::withHost() - error - forbidden domain code point +Test Uri\WhatWg\Url::withHost() - error - colon in opaque host input --FILE-- withHost("ex:mple.com"); From f4beffc7ebd46cb3696f295d65a41774cc4a8a6f Mon Sep 17 00:00:00 2001 From: NickSdot Date: Thu, 3 Sep 2026 04:57:57 +0800 Subject: [PATCH 11/14] review: improved title names --- ...st_codepoint_opaque1.phpt => host_error_at_sign_opaque.phpt} | 2 +- ..._codepoint_special1.phpt => host_error_at_sign_special.phpt} | 2 +- ...st_codepoint_special2.phpt => host_error_colon_special.phpt} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename ext/uri/tests/whatwg/modification/{host_error_forbidden_host_codepoint_opaque1.phpt => host_error_at_sign_opaque.phpt} (81%) rename ext/uri/tests/whatwg/modification/{host_error_forbidden_host_codepoint_special1.phpt => host_error_at_sign_special.phpt} (81%) rename ext/uri/tests/whatwg/modification/{host_error_forbidden_host_codepoint_special2.phpt => host_error_colon_special.phpt} (80%) diff --git a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque1.phpt b/ext/uri/tests/whatwg/modification/host_error_at_sign_opaque.phpt similarity index 81% rename from ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque1.phpt rename to ext/uri/tests/whatwg/modification/host_error_at_sign_opaque.phpt index 6735f2572578..8aefb1251e4a 100644 --- a/ext/uri/tests/whatwg/modification/host_error_forbidden_host_codepoint_opaque1.phpt +++ b/ext/uri/tests/whatwg/modification/host_error_at_sign_opaque.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url::withHost() - error - forbidden host code point +Test Uri\WhatWg\Url::withHost() - error - at sign in opaque host input --FILE-- Date: Thu, 3 Sep 2026 05:02:51 +0800 Subject: [PATCH 12/14] review: aligned file names with titles --- ...null.phpt => basic_error_emoji_relative_url_returns_null.phpt} | 0 ...error_relative_reference.phpt => path_error_relative_url.phpt} | 0 ...erence_absolute.phpt => path_error_relative_url_absolute.phpt} | 0 ...ment.phpt => path_error_relative_url_only_query_fragment.phpt} | 0 ..._relative_reference.phpt => resolve_success_relative_url.phpt} | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename ext/uri/tests/whatwg/parsing/{basic_error_emoji_relative_reference_returns_null.phpt => basic_error_emoji_relative_url_returns_null.phpt} (100%) rename ext/uri/tests/whatwg/parsing/{path_error_relative_reference.phpt => path_error_relative_url.phpt} (100%) rename ext/uri/tests/whatwg/parsing/{path_error_relative_reference_absolute.phpt => path_error_relative_url_absolute.phpt} (100%) rename ext/uri/tests/whatwg/parsing/{path_error_relative_reference_only_query_fragment.phpt => path_error_relative_url_only_query_fragment.phpt} (100%) rename ext/uri/tests/whatwg/reference_resolution/{resolve_success_relative_reference.phpt => resolve_success_relative_url.phpt} (100%) diff --git a/ext/uri/tests/whatwg/parsing/basic_error_emoji_relative_reference_returns_null.phpt b/ext/uri/tests/whatwg/parsing/basic_error_emoji_relative_url_returns_null.phpt similarity index 100% rename from ext/uri/tests/whatwg/parsing/basic_error_emoji_relative_reference_returns_null.phpt rename to ext/uri/tests/whatwg/parsing/basic_error_emoji_relative_url_returns_null.phpt 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 100% rename from ext/uri/tests/whatwg/parsing/path_error_relative_reference.phpt rename to ext/uri/tests/whatwg/parsing/path_error_relative_url.phpt 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 100% 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 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 100% 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 diff --git a/ext/uri/tests/whatwg/reference_resolution/resolve_success_relative_reference.phpt b/ext/uri/tests/whatwg/reference_resolution/resolve_success_relative_url.phpt similarity index 100% rename from ext/uri/tests/whatwg/reference_resolution/resolve_success_relative_reference.phpt rename to ext/uri/tests/whatwg/reference_resolution/resolve_success_relative_url.phpt From 3d340ecdcc16dd10a4d064b44ca821f33bb001a1 Mon Sep 17 00:00:00 2001 From: NickSdot Date: Fri, 4 Sep 2026 20:02:12 +0800 Subject: [PATCH 13/14] review: restructured reference resolution titles --- ...with_base.phpt => parse_success_absolute_uri_with_base.phpt} | 2 +- ...ase.phpt => parse_success_relative_reference_with_base.phpt} | 2 +- ...e_error_null_byte.phpt => resolve_error_path_null_byte.phpt} | 2 +- ...r_unicode.phpt => resolve_error_path_unicode_character.phpt} | 2 +- .../reference_resolution/resolve_success_absolute_uri.phpt | 2 +- .../resolve_success_relative_reference.phpt | 2 +- ...with_base.phpt => parse_success_absolute_url_with_base.phpt} | 2 +- ...with_base.phpt => parse_success_relative_url_with_base.phpt} | 2 +- .../reference_resolution/resolve_error_host_null_byte.phpt | 2 +- .../reference_resolution/resolve_error_ipv4_too_many_parts.phpt | 2 +- .../reference_resolution/resolve_success_absolute_url.phpt | 2 +- ...nings.phpt => resolve_success_invalid_url_unit_warning.phpt} | 2 +- .../reference_resolution/resolve_success_path_null_byte.phpt | 2 +- .../reference_resolution/resolve_success_relative_url.phpt | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) rename ext/uri/tests/rfc3986/reference_resolution/{parse_success_absolute_with_base.phpt => parse_success_absolute_uri_with_base.phpt} (87%) rename ext/uri/tests/rfc3986/reference_resolution/{parse_success_relative_with_base.phpt => parse_success_relative_reference_with_base.phpt} (86%) rename ext/uri/tests/rfc3986/reference_resolution/{resolve_error_null_byte.phpt => resolve_error_path_null_byte.phpt} (79%) rename ext/uri/tests/rfc3986/reference_resolution/{resolve_error_unicode.phpt => resolve_error_path_unicode_character.phpt} (79%) rename ext/uri/tests/whatwg/reference_resolution/{parse_success_absolute_with_base.phpt => parse_success_absolute_url_with_base.phpt} (86%) rename ext/uri/tests/whatwg/reference_resolution/{parse_success_relative_with_base.phpt => parse_success_relative_url_with_base.phpt} (85%) rename ext/uri/tests/whatwg/reference_resolution/{resolve_success_invalid_url_unit_warnings.phpt => resolve_success_invalid_url_unit_warning.phpt} (90%) 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-- Date: Fri, 4 Sep 2026 20:02:34 +0800 Subject: [PATCH 14/14] review: reverted lexbor tilte change --- ext/uri/tests/whatwg/general/memory_management.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/uri/tests/whatwg/general/memory_management.phpt b/ext/uri/tests/whatwg/general/memory_management.phpt index 6047b064bb57..915e31350676 100644 --- a/ext/uri/tests/whatwg/general/memory_management.phpt +++ b/ext/uri/tests/whatwg/general/memory_management.phpt @@ -1,5 +1,5 @@ --TEST-- -Test Uri\WhatWg\Url Lexbor memory management - success +Test Lexbor memory management --FILE--