Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102186367
PhutilReadableSerializerTestCase.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, Feb 18, 01:04
Size
513 B
Mime Type
text/x-php
Expires
Thu, Feb 20, 01:04 (2 d)
Engine
blob
Format
Raw Data
Handle
24302079
Attached To
rPHU libphutil
PhutilReadableSerializerTestCase.php
View Options
<?php
final
class
PhutilReadableSerializerTestCase
extends
PhutilTestCase
{
public
function
testPrintableValue
()
{
$tests
=
array
(
array
(
null
,
'null'
),
array
(
true
,
'true'
),
array
(
false
,
'false'
),
array
(
0
,
'0'
),
array
(
0.0
,
'0.0'
),
array
(
0.1
,
'0.1'
),
array
(
'test'
,
'test'
),
);
foreach
(
$tests
as
$test
)
{
list
(
$value
,
$expect
)
=
$test
;
$this
->
assertEqual
(
$expect
,
PhutilReadableSerializer
::
printableValue
(
$value
));
}
}
}
Event Timeline
Log In to Comment