From 938d9cce77ed5098dd69643795cb4014f3688b35 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 22 Dec 2015 10:20:27 +0100 Subject: 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. --- tests/Url/UrlTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/Url/UrlTest.php') 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 $url = new Url('git://domain.tld/push?pull=clone#checkout'); $this->assertEquals('git', $url->getScheme()); } + + /** + * Test add trailing slash. + */ + function testAddTrailingSlash() + { + $strOn = 'http://randomstr.com/test/'; + $strOff = 'http://randomstr.com/test'; + $this->assertEquals($strOn, add_trailing_slash($strOn)); + $this->assertEquals($strOn, add_trailing_slash($strOff)); + } } -- cgit v1.2.3