ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
BooleanTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject\Property
;
4
5
use
PHPUnit\Framework\TestCase
;
6
use
Sabre\VObject
;
7
8
class
BooleanTest
extends
TestCase {
9
10
function
testMimeDir
() {
11
12
$input
=
"BEGIN:VCARD\r\nX-AWESOME;VALUE=BOOLEAN:TRUE\r\nX-SUCKS;VALUE=BOOLEAN:FALSE\r\nEND:VCARD\r\n"
;
13
14
$vcard =
VObject\Reader::read
(
$input
);
15
$this->assertTrue($vcard->{
'X-AWESOME'
}->getValue());
16
$this->assertFalse($vcard->{
'X-SUCKS'
}->getValue());
17
18
$this->assertEquals(
'BOOLEAN'
, $vcard->{
'X-AWESOME'
}->getValueType());
19
$this->assertEquals(
$input
, $vcard->serialize());
20
21
}
22
23
}
Sabre\VObject
Definition:
mergeduplicates.php:4
$input
$input
Definition:
bench_manipulatevcard.php:18
Sabre\VObject\$input
if($argc< 3) $input
Definition:
mergeduplicates.php:35
Sabre\VObject\Property
Definition:
Binary.php:3
Sabre\VObject\Property\BooleanTest\testMimeDir
testMimeDir()
Definition:
BooleanTest.php:10
Sabre\VObject\Reader\read
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition:
Reader.php:42
php
Sabre\VObject\Property\BooleanTest
Definition:
BooleanTest.php:8
TestCase
libs
composer
vendor
sabre
vobject
tests
VObject
Property
BooleanTest.php
Generated on Thu Jan 16 2025 19:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)