|
24 | 24 |
|
25 | 25 | /** |
26 | 26 | * Unit test for AbstractEntityUrl resolver |
| 27 | + * |
| 28 | + * @SuppressWarnings(PHPMD.ExcessivePublicCount) |
| 29 | + * @SuppressWarnings(PHPMD.TooManyFields) |
| 30 | + * @SuppressWarnings(PHPMD.ExcessiveClassComplexity) |
27 | 31 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
28 | 32 | */ |
29 | 33 | class AbstractEntityUrlTest extends TestCase |
@@ -625,11 +629,25 @@ public function testParseUrlHandlesVariousUrlFormats(): void |
625 | 629 | // URL with host (should preserve path parsing) |
626 | 630 | 'https://example.com/path' => ['scheme' => 'https', 'host' => 'example.com', 'path' => 'path'], |
627 | 631 | // URL with port |
628 | | - 'http://example.com:8080/path' => ['scheme' => 'http', 'host' => 'example.com', 'port' => 8080, 'path' => 'path'], |
| 632 | + 'http://example.com:8080/path' => [ |
| 633 | + 'scheme' => 'http', |
| 634 | + 'host' => 'example.com', |
| 635 | + 'port' => 8080, |
| 636 | + 'path' => 'path' |
| 637 | + ], |
629 | 638 | // URL with user info |
630 | | - 'https://user:pass@example.com/path' => ['scheme' => 'https', 'user' => 'user', 'pass' => 'pass', 'host' => 'example.com', 'path' => 'path'], |
| 639 | + 'https://user:pass@example.com/path' => [ |
| 640 | + 'scheme' => 'https', |
| 641 | + 'user' => 'user', |
| 642 | + 'pass' => 'pass', |
| 643 | + 'host' => 'example.com', |
| 644 | + 'path' => 'path' |
| 645 | + ], |
631 | 646 | // Complex query string |
632 | | - 'product?color=red&size=large&in_stock=1' => ['path' => 'product', 'query' => 'color=red&size=large&in_stock=1'], |
| 647 | + 'product?color=red&size=large&in_stock=1' => [ |
| 648 | + 'path' => 'product', |
| 649 | + 'query' => 'color=red&size=large&in_stock=1' |
| 650 | + ], |
633 | 651 | // Path with encoded characters |
634 | 652 | 'category/special%20products' => ['path' => 'category/special%20products'], |
635 | 653 | // Multiple slashes in path |
|
0 commit comments