We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd4e7d commit cce3a88Copy full SHA for cce3a88
tests/EmbedTest.php
@@ -111,6 +111,24 @@ public function testUrlDirectory()
111
$this->assertNull($url->getDirectory(3));
112
}
113
114
+ public function testUrlDomain()
115
+ {
116
+ $url = new Embed\Url('http://www.domain.com');
117
+
118
+ $this->assertEquals('domain', $url->getDomain());
119
+ $this->assertEquals('domain.com', $url->getDomain(1));
120
121
+ $url = new Embed\Url('http://www.domain.co.uk');
122
123
124
+ $this->assertEquals('domain.co.uk', $url->getDomain(1));
125
126
+ $url = new Embed\Url('http://www.domain.com.au');
127
128
129
+ $this->assertEquals('domain.com.au', $url->getDomain(1));
130
+ }
131
132
public function testRedirections()
133
{
134
$this->checkUrl(
0 commit comments