aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Url/UrlTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-01-11 21:47:00 +0100
committerVirtualTam <virtualtam@flibidi.net>2016-01-11 21:47:00 +0100
commit92ba7b573f2833bd35c7eb2fc7fdbeb1a0ac7b44 (patch)
tree787f6d8fdabe8ea2fc0c37b61d616e667cdfbda5 /tests/Url/UrlTest.php
parentc0a50f3663e207d5df007e0fa321219c1b32d6ea (diff)
parent1557cefbd76257ceb830f65806831b490faf0acc (diff)
downloadShaarli-92ba7b573f2833bd35c7eb2fc7fdbeb1a0ac7b44.tar.gz
Shaarli-92ba7b573f2833bd35c7eb2fc7fdbeb1a0ac7b44.tar.zst
Shaarli-92ba7b573f2833bd35c7eb2fc7fdbeb1a0ac7b44.zip
Merge pull request #432 from ArthurHoaro/title-retrieve
Fixes #410 - Retrieve title fails in multiple cases
Diffstat (limited to 'tests/Url/UrlTest.php')
-rw-r--r--tests/Url/UrlTest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/Url/UrlTest.php b/tests/Url/UrlTest.php
index af6daaa4..425327ed 100644
--- a/tests/Url/UrlTest.php
+++ b/tests/Url/UrlTest.php
@@ -156,4 +156,22 @@ class UrlTest extends PHPUnit_Framework_TestCase
156 $this->assertEquals($strOn, add_trailing_slash($strOn)); 156 $this->assertEquals($strOn, add_trailing_slash($strOn));
157 $this->assertEquals($strOn, add_trailing_slash($strOff)); 157 $this->assertEquals($strOn, add_trailing_slash($strOff));
158 } 158 }
159
160 /**
161 * Test valid HTTP url.
162 */
163 function testUrlIsHttp()
164 {
165 $url = new Url(self::$baseUrl);
166 $this->assertTrue($url->isHttp());
167 }
168
169 /**
170 * Test non HTTP url.
171 */
172 function testUrlIsNotHttp()
173 {
174 $url = new Url('ftp://save.tld/mysave');
175 $this->assertFalse($url->isHttp());
176 }
159} 177}