Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1820453
BuildTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
857 B
Subscribers
None
BuildTest.php
View Options
<?php
namespace
Sabre\Uri
;
class
BuildTest
extends
\PHPUnit_Framework_TestCase
{
/**
* @dataProvider buildUriData
*/
function
testBuild
(
$value
)
{
$this
->
assertEquals
(
$value
,
build
(
parse_url
(
$value
))
);
}
function
buildUriData
()
{
return
[
[
'http://example.org/'
],
[
'http://example.org/foo/bar'
],
[
'//example.org/foo/bar'
],
[
'/foo/bar'
],
[
'http://example.org:81/'
],
[
'http://user@example.org:81/'
],
[
'http://example.org:81/hi?a=b'
],
[
'http://example.org:81/hi?a=b#c=d'
],
// [ '//example.org:81/hi?a=b#c=d'], // Currently fails due to a
// PHP bug.
[
'/hi?a=b#c=d'
],
[
'?a=b#c=d'
],
[
'#c=d'
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Dec 22, 3:22 AM (5 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
915605
Default Alt Text
BuildTest.php (857 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment