| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function testParseUrl() : void |
||
| 30 | { |
||
| 31 | $parts = $this->parser->parseUrl('https://sub.domain.jwage.com:443/about?param=value#fragment?param=value'); |
||
| 32 | $this->assertEquals([ |
||
| 33 | 'scheme' => 'https', |
||
| 34 | 'host' => 'sub.domain.jwage.com', |
||
| 35 | 'port' => 443, |
||
| 36 | 'user' => null, |
||
| 37 | 'pass' => null, |
||
| 38 | 'path' => '/about', |
||
| 39 | 'query' => 'param=value', |
||
| 40 | 'fragment' => 'fragment?param=value', |
||
| 41 | 'canonical' => 'com.jwage.domain.sub/about?param=value', |
||
| 42 | 'resource' => '/about?param=value', |
||
| 43 | ], $parts); |
||
| 44 | } |
||
| 54 |