Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123150973
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
Fri, Jul 25, 06:55
Size
413 B
Mime Type
text/x-php
Expires
Sun, Jul 27, 06:55 (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