aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Url/UrlTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-01-02 20:09:29 +0100
committerVirtualTam <virtualtam@flibidi.net>2016-01-02 20:09:29 +0100
commitdefc8a3f033a44602c598c2028a9ee3ee2a86d1d (patch)
treeefb09f1c0d7b16e2c2dcb0313157d93ece6775b4 /tests/Url/UrlTest.php
parent66d86ea521d737b1bc92b16b9c9b4126f545916c (diff)
parent938d9cce77ed5098dd69643795cb4014f3688b35 (diff)
downloadShaarli-defc8a3f033a44602c598c2028a9ee3ee2a86d1d.tar.gz
Shaarli-defc8a3f033a44602c598c2028a9ee3ee2a86d1d.tar.zst
Shaarli-defc8a3f033a44602c598c2028a9ee3ee2a86d1d.zip
Merge pull request #417 from ArthurHoaro/wallabag-improve
Wallabag plugin improvement
Diffstat (limited to 'tests/Url/UrlTest.php')
-rw-r--r--tests/Url/UrlTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Url/UrlTest.php b/tests/Url/UrlTest.php
index e498d79e..af6daaa4 100644
--- a/tests/Url/UrlTest.php
+++ b/tests/Url/UrlTest.php
@@ -145,4 +145,15 @@ class UrlTest extends PHPUnit_Framework_TestCase
145 $url = new Url('git://domain.tld/push?pull=clone#checkout'); 145 $url = new Url('git://domain.tld/push?pull=clone#checkout');
146 $this->assertEquals('git', $url->getScheme()); 146 $this->assertEquals('git', $url->getScheme());
147 } 147 }
148
149 /**
150 * Test add trailing slash.
151 */
152 function testAddTrailingSlash()
153 {
154 $strOn = 'http://randomstr.com/test/';
155 $strOff = 'http://randomstr.com/test';
156 $this->assertEquals($strOn, add_trailing_slash($strOn));
157 $this->assertEquals($strOn, add_trailing_slash($strOff));
158 }
148} 159}