Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93232347
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
Wed, Nov 27, 05:25
Size
513 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 05:25 (2 d)
Engine
blob
Format
Raw Data
Handle
22600224
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