Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3295365
ConduitClientTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
690 B
Referenced Files
None
Subscribers
None
ConduitClientTestCase.php
View Options
<?php
final
class
ConduitClientTestCase
extends
PhutilTestCase
{
public
function
testConduitRequestEncoding
(
)
{
$input
=
array
(
'z'
=>
array
(
'nothing'
=>
null
,
'emptystring'
=>
''
,
)
,
'empty'
=>
array
(
)
,
'list'
=>
array
(
15
,
'quack'
,
true
,
false
,
)
,
'a'
=>
array
(
'key'
=>
'value'
,
'key2'
=>
'value2'
,
)
,
)
;
$expect
=
'O4:S1:aO2:S3:keyS5:valueS4:key2S6:value2S5:emptyA0:S4:listA4:I2:15'
.
'S5:quackB1:B0:S1:zO2:S11:emptystringS0:S7:nothingN:'
;
$this
->
assertEqual
(
$expect
,
ConduitClient
::
encodeRawDataForSignature
(
$input
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Mar 27, 01:53 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1116396
Default Alt Text
ConduitClientTestCase.php (690 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment