| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 36 | public function testAuthority() |
||
| 37 | { |
||
| 38 | $uri = $this->createUri('/'); |
||
| 39 | $this->assertEquals('', $uri->getAuthority()); |
||
| 40 | |||
| 41 | $uri = $this->createUri('http://[email protected]:80/'); |
||
| 42 | $this->assertEquals('[email protected]', $uri->getAuthority()); |
||
| 43 | |||
| 44 | $uri = $this->createUri('http://[email protected]:81/'); |
||
| 45 | $this->assertEquals('[email protected]:81', $uri->getAuthority()); |
||
| 46 | |||
| 47 | $uri = $this->createUri('http://user:[email protected]/'); |
||
| 48 | $this->assertEquals('user:[email protected]', $uri->getAuthority()); |
||
| 49 | } |
||
| 59 | } |