Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123753975
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
Tue, Jul 29, 10:30
Size
413 B
Mime Type
text/x-php
Expires
Thu, Jul 31, 10:30 (2 d)
Engine
blob
Format
Raw Data
Handle
27750809
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