-
Notifications
You must be signed in to change notification settings - Fork 8k
Reorganize ext/uri tests - equivalence #20391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
TimWolla
left a comment
There was a problem hiding this 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"); |
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No description provided.