Definition at line 7 of file JCardTest.php.
◆ testToJCard()
Sabre\VObject\JCardTest::testToJCard |
( |
| ) |
|
Definition at line 9 of file JCardTest.php.
References Sabre\VObject\Version\VERSION.
11 $card =
new Component\VCard([
15 "REV" =>
"19951031T222710Z",
17 "N" => [
"Last",
"First",
"Middle",
"",
""],
18 "item1.TEL" =>
"+1 555 123456",
19 "item1.X-AB-LABEL" =>
"Walkie Talkie",
23 [
"My Street",
"Left Side",
"Second Shack"],
31 $card->add(
'BDAY',
'1979-12-25', [
'VALUE' =>
'DATE',
'X-PARAM' => [1, 2]]);
32 $card->add(
'BDAY',
'1979-12-25T02:00:00', [
'VALUE' =>
'DATE-TIME']);
35 $card->add(
'X-TRUNCATED',
'--1225', [
'VALUE' =>
'DATE']);
36 $card->add(
'X-TIME-LOCAL',
'123000', [
'VALUE' =>
'TIME']);
37 $card->add(
'X-TIME-UTC',
'12:30:00Z', [
'VALUE' =>
'TIME']);
38 $card->add(
'X-TIME-OFFSET',
'12:30:00-08:00', [
'VALUE' =>
'TIME']);
39 $card->add(
'X-TIME-REDUCED',
'23', [
'VALUE' =>
'TIME']);
40 $card->add(
'X-TIME-TRUNCATED',
'--30', [
'VALUE' =>
'TIME']);
42 $card->add(
'X-KARMA-POINTS',
'42', [
'VALUE' =>
'INTEGER']);
43 $card->add(
'X-GRADE',
'1.3', [
'VALUE' =>
'FLOAT']);
45 $card->add(
'TZ',
'-0500', [
'VALUE' =>
'UTC-OFFSET']);
86 "1979-12-25T02:00:00",
92 "1995-10-31T22:27:10Z",
104 [
"Last",
"First",
"Middle",
"",
""],
129 [
"My Street",
"Left Side",
"Second Shack"],
193 $this->assertEquals($expected, $card->jsonSerialize());
const VERSION
Full version number.
The documentation for this class was generated from the following file: