aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/UtilsTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2019-02-23 16:46:02 +0100
committerVirtualTam <virtualtam@flibidi.net>2019-02-23 16:46:02 +0100
commitaf22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e (patch)
treee461ef309a15e9b9da6058892350c4275558d783 /tests/UtilsTest.php
parent1a3da5a5011fc79c2bf15a8d1f6c7dd9f87db715 (diff)
parent1c03b65e2ea722b39e54b22c46014f35e34b575b (diff)
downloadShaarli-af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e.tar.gz
Shaarli-af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e.tar.zst
Shaarli-af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e.zip
Merge tag 'v0.10.3' into latest
Release v0.10.3
Diffstat (limited to 'tests/UtilsTest.php')
-rw-r--r--tests/UtilsTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php
index 6cd37a7a..d0abd996 100644
--- a/tests/UtilsTest.php
+++ b/tests/UtilsTest.php
@@ -187,7 +187,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase
187 /** 187 /**
188 * Test generate location with valid data. 188 * Test generate location with valid data.
189 */ 189 */
190 public function testGenerateLocation() { 190 public function testGenerateLocation()
191 {
191 $ref = 'http://localhost/?test'; 192 $ref = 'http://localhost/?test';
192 $this->assertEquals($ref, generateLocation($ref, 'localhost')); 193 $this->assertEquals($ref, generateLocation($ref, 'localhost'));
193 $ref = 'http://localhost:8080/?test'; 194 $ref = 'http://localhost:8080/?test';
@@ -199,7 +200,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase
199 /** 200 /**
200 * Test generate location - anti loop. 201 * Test generate location - anti loop.
201 */ 202 */
202 public function testGenerateLocationLoop() { 203 public function testGenerateLocationLoop()
204 {
203 $ref = 'http://localhost/?test'; 205 $ref = 'http://localhost/?test';
204 $this->assertEquals('?', generateLocation($ref, 'localhost', array('test'))); 206 $this->assertEquals('?', generateLocation($ref, 'localhost', array('test')));
205 } 207 }
@@ -207,7 +209,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase
207 /** 209 /**
208 * Test generate location - from other domain. 210 * Test generate location - from other domain.
209 */ 211 */
210 public function testGenerateLocationOut() { 212 public function testGenerateLocationOut()
213 {
211 $ref = 'http://somewebsite.com/?test'; 214 $ref = 'http://somewebsite.com/?test';
212 $this->assertEquals('?', generateLocation($ref, 'localhost')); 215 $this->assertEquals('?', generateLocation($ref, 'localhost'));
213 } 216 }