Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123267301
PhutilurisprintfTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 26, 03:01
Size
413 B
Mime Type
text/x-php
Expires
Mon, Jul 28, 03:01 (2 d)
Engine
blob
Format
Raw Data
Handle
27648505
Attached To
rPHU libphutil
PhutilurisprintfTestCase.php
View Options
<?php
final
class
PhutilurisprintfTestCase
extends
ArcanistTestCase
{
public
function
testurisprintf
()
{
$this
->
assertEqual
(
'x.com?a=huh%3F'
,
urisprintf
(
'x.com?a=%s'
,
'huh?'
));
$this
->
assertEqual
(
'/a/origin%252Fmaster/z/'
,
urisprintf
(
'/a/%p/z/'
,
'origin/master'
));
$this
->
assertEqual
(
'y.com?%21&%23'
,
vurisprintf
(
'y.com?%s&%s'
,
array
(
'!'
,
'#'
)));
}
}
Event Timeline
Log In to Comment