From c9da01e749e5319d0c0f400cde06e71c0e7312d5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 24 Mar 2016 19:01:40 +0100 Subject: Refactor and rebase #380: Firefox reader view links Fixes #366 Closes #380 --- tests/Url/UrlTest.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/Url/UrlTest.php b/tests/Url/UrlTest.php index 425327ed..a64a73ea 100644 --- a/tests/Url/UrlTest.php +++ b/tests/Url/UrlTest.php @@ -128,6 +128,13 @@ class UrlTest extends PHPUnit_Framework_TestCase self::$baseUrl.'?my=stuff&is=kept#again', $url->cleanup() ); + + // test firefox reader url + $url = new Url( + 'about://reader?url=' . urlencode(self::$baseUrl .'?my=stuff&is=kept') + ); + $this->assertEquals(self::$baseUrl.'?my=stuff&is=kept', $url->cleanup()); + } /** -- cgit v1.2.3