diff options
Diffstat (limited to 'tests/LinkDBTest.php')
-rw-r--r-- | tests/LinkDBTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index 8ffb1512..30ea4e01 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php | |||
@@ -340,6 +340,13 @@ class LinkDBTest extends PHPUnit_Framework_TestCase | |||
340 | $db = new LinkDB(self::$testDatastore, false, false, $redirector); | 340 | $db = new LinkDB(self::$testDatastore, false, false, $redirector); |
341 | foreach($db as $link) { | 341 | foreach($db as $link) { |
342 | $this->assertStringStartsWith($redirector, $link['real_url']); | 342 | $this->assertStringStartsWith($redirector, $link['real_url']); |
343 | $this->assertNotFalse(strpos($link['real_url'], urlencode('://'))); | ||
344 | } | ||
345 | |||
346 | $db = new LinkDB(self::$testDatastore, false, false, $redirector, false); | ||
347 | foreach($db as $link) { | ||
348 | $this->assertStringStartsWith($redirector, $link['real_url']); | ||
349 | $this->assertFalse(strpos($link['real_url'], urlencode('://'))); | ||
343 | } | 350 | } |
344 | } | 351 | } |
345 | 352 | ||