Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1821325
BooleanTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
580 B
Subscribers
None
BooleanTest.php
View Options
<?php
namespace
Sabre\VObject\Property
;
use
Sabre\VObject
;
class
BooleanTest
extends
\PHPUnit_Framework_TestCase
{
function
testMimeDir
()
{
$input
=
"BEGIN:VCARD
\r\n
X-AWESOME;VALUE=BOOLEAN:TRUE
\r\n
X-SUCKS;VALUE=BOOLEAN:FALSE
\r\n
END:VCARD
\r\n
"
;
$vcard
=
VObject\Reader
::
read
(
$input
);
$this
->
assertTrue
(
$vcard
->{
'X-AWESOME'
}->
getValue
());
$this
->
assertFalse
(
$vcard
->{
'X-SUCKS'
}->
getValue
());
$this
->
assertEquals
(
'BOOLEAN'
,
$vcard
->{
'X-AWESOME'
}->
getValueType
());
$this
->
assertEquals
(
$input
,
$vcard
->
serialize
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Dec 23, 5:22 PM (17 m, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
916260
Default Alt Text
BooleanTest.php (580 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment