aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Url
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-12-22 10:20:27 +0100
committerArthurHoaro <arthur@hoa.ro>2015-12-27 15:30:34 +0100
commit938d9cce77ed5098dd69643795cb4014f3688b35 (patch)
treeb0bbdd80b81e6f54009f0c67631e69020e2f4399 /tests/Url
parent79851b489087f8a3027ecd805255cd13ee6fcf63 (diff)
downloadShaarli-938d9cce77ed5098dd69643795cb4014f3688b35.tar.gz
Shaarli-938d9cce77ed5098dd69643795cb4014f3688b35.tar.zst
Shaarli-938d9cce77ed5098dd69643795cb4014f3688b35.zip
Wallabag plugin improvement
* Fixes a bug where URL weren't properly encoded. * Adds Wallabag V2 support. * Adds a URL function to handle trailing slash. * UT. * README updated.
Diffstat (limited to 'tests/Url')
-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}