assertEquals('http://example.com/', $result); } public function testAddsSlashToBareDomain() { $url = 'http://example.com'; $result = p3k\XRay\normalize_url($url); $this->assertEquals('http://example.com/', $result); } public function testDoesNotModify() { $url = 'https://example.com/'; $result = p3k\XRay\normalize_url($url); $this->assertEquals('https://example.com/', $result); } }