| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class UrlTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testBadUrl() |
||
| 11 | { |
||
| 12 | $this->expectException(\InvalidArgumentException::class); |
||
| 13 | new Url('gitlab.my-website.com'); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function testHttpUrl() |
||
| 17 | { |
||
| 18 | $url = new Url('https://gitlab.my-website.com'); |
||
| 19 | self::assertRegExp('/^https:/', (string) $url); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testSshUrl() |
||
| 26 | } |
||
| 27 | } |
||
| 28 |