6 require_once 'application/Url.php';
9 * Unitary tests for unparse_url()
11 class UnparseUrlTest
extends PHPUnit_Framework_TestCase
14 * Thanks for building nothing
16 public function testUnparseEmptyArray()
18 $this->assertEquals('', unparse_url(array()));
22 * Rebuild a full-featured URL
24 public function testUnparseFull()
26 $ref = 'http://username:password@hostname:9090/path'
27 .'?arg1=value1&arg2=value2#anchor';
28 $this->assertEquals($ref, unparse_url(parse_url($ref)));