]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - tests/http/UrlUtils/UnparseUrlTest.php
3 * Unpares UrlUtils's tests
6 namespace Shaarli\Http
;
8 require_once 'application/http/UrlUtils.php';
11 * Unitary tests for unparse_url()
13 class UnparseUrlTest
extends \Shaarli\TestCase
16 * Thanks for building nothing
18 public function testUnparseEmptyArray()
20 $this->assertEquals('', unparse_url(array()));
24 * Rebuild a full-featured URL
26 public function testUnparseFull()
28 $ref = 'http://username:password@hostname:9090/path'
29 .'?arg1=value1&arg2=value2#anchor';
30 $this->assertEquals($ref, unparse_url(parse_url($ref)));