Skip to content

Conversation

@kocsismate
Copy link
Member

No description provided.

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have looked at all WHATWG tests.

<?php

$url1 = new Uri\WhatWg\Url("https://example%2ecom:443");
$url2 = new Uri\WhatWg\Url("https://example.com:0443");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also a port difference here.

@@ -0,0 +1,15 @@
--TEST--
Test Uri\WhatWg\Url equivalence - returns true - path is not percent-decoded during normalization
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description says "returns true".

@@ -0,0 +1,15 @@
--TEST--
Test Uri\WhatWg\Url equivalence - returns false - fragment excluded
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description and file name says "false", but the expectations say true.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is not really meaningful, because the difference is not in fragment, but in the path. So with either option of the comparison mode the result would be false.

I'm missing a test with the same URIs as ext/uri/tests/whatwg/equivalence/equals_true_exclude_fragment.phpt that uses IncludeFragment and then returns false.

@TimWolla TimWolla self-requested a review November 7, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants