Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1821229
FloatTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
657 B
Subscribers
None
FloatTest.php
View Options
<?php
namespace
Sabre\VObject\Property
;
use
Sabre\VObject
;
class
FloatTest
extends
\PHPUnit_Framework_TestCase
{
function
testMimeDir
()
{
$input
=
"BEGIN:VCARD
\r\n
VERSION:4.0
\r\n
X-FLOAT;VALUE=FLOAT:0.234;1.245
\r\n
END:VCARD
\r\n
"
;
$mimeDir
=
new
VObject\Parser\MimeDir
(
$input
);
$result
=
$mimeDir
->
parse
(
$input
);
$this
->
assertInstanceOf
(
'Sabre
\V
Object
\P
roperty
\F
loat'
,
$result
->{
'X-FLOAT'
});
$this
->
assertEquals
(
array
(
0.234
,
1.245
,
),
$result
->{
'X-FLOAT'
}->
getParts
());
$this
->
assertEquals
(
$input
,
$result
->
serialize
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Dec 23, 10:03 AM (10 h, 39 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
916399
Default Alt Text
FloatTest.php (657 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment