forked from garycourt/JSV
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new test for serialize, fix urlencoding of stuff that needs urlencoding
- Loading branch information
Greg Beaver
authored and
Greg Beaver
committed
Jul 28, 2011
1 parent
f0dd303
commit 6ce41aa
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
JsonSchema: URI - serialize | ||
--FILE-- | ||
<?php | ||
require dirname(__FILE__) . '/setup.php.inc'; | ||
$components = new Pyrus\JsonSchema\URI\Components; | ||
$components->scheme = '%http'; | ||
$components->userinfo = 'babyface:boo'; | ||
$components->host = 'far.example.com'; | ||
$components->port = '8080'; | ||
$components->path = '/hi.my.thingy/./there'; | ||
$components->query = 'my=1&there=there'; | ||
$components->fragment = '#'; | ||
$test->assertEquals('http://babyface:[email protected]/hi.my.thingy/there?my=1&there=there#%23', $uri->serialize($components), 'serialize'); | ||
?> | ||
===DONE=== | ||
--EXPECT-- | ||
===DONE=== |