Note that most MimeDir related tests can actually be found in the ReaderTest class one level up.
More...
Note that most MimeDir related tests can actually be found in the ReaderTest class one level up.
Definition at line 11 of file MimeDirTest.php.
◆ testCaseInsensitiveInlineCharset()
Sabre\VObject\Parser\MimeDirTest::testCaseInsensitiveInlineCharset |
( |
| ) |
|
Definition at line 146 of file MimeDirTest.php.
References n.
151 FN;CHARSET=iSo-8859-1:Euro
152 N;CHARSET=utf-8:Test2
156 $mimeDir =
new MimeDir();
157 $vcard = $mimeDir->parse($vcard);
159 $this->assertEquals(
"Euro", $vcard->FN->getValue());
160 $this->assertEquals(
"Test2", $vcard->N->getValue());
if(! $in) print Initializing normalization quick check tables n
◆ testDecodeInlineLatin1()
Sabre\VObject\Parser\MimeDirTest::testDecodeInlineLatin1 |
( |
| ) |
|
Definition at line 39 of file MimeDirTest.php.
References n.
44 FN;CHARSET=ISO-8859-1:umlaut u - \xFC
48 $mimeDir =
new MimeDir();
49 $vcard = $mimeDir->parse($vcard);
50 $this->assertEquals(
"umlaut u - \xC3\xBC", $vcard->FN->getValue());
if(! $in) print Initializing normalization quick check tables n
◆ testDecodeLatin1()
Sabre\VObject\Parser\MimeDirTest::testDecodeLatin1 |
( |
| ) |
|
Definition at line 23 of file MimeDirTest.php.
References n.
32 $mimeDir =
new MimeDir();
33 $mimeDir->setCharset(
'ISO-8859-1');
34 $vcard = $mimeDir->parse($vcard);
35 $this->assertEquals(
"umlaut u - \xC3\xBC", $vcard->FN->getValue());
if(! $in) print Initializing normalization quick check tables n
◆ testDecodeUnsupportedCharset()
Sabre\VObject\Parser\MimeDirTest::testDecodeUnsupportedCharset |
( |
| ) |
|
Definition at line 91 of file MimeDirTest.php.
93 $mimeDir =
new MimeDir();
94 $mimeDir->setCharset(
'foobar');
◆ testDecodeUnsupportedInlineCharset()
Sabre\VObject\Parser\MimeDirTest::testDecodeUnsupportedInlineCharset |
( |
| ) |
|
Definition at line 101 of file MimeDirTest.php.
References n.
106 FN;CHARSET=foobar:nothing
110 $mimeDir =
new MimeDir();
111 $mimeDir->parse($vcard);
if(! $in) print Initializing normalization quick check tables n
◆ testDecodeWindows1252()
Sabre\VObject\Parser\MimeDirTest::testDecodeWindows1252 |
( |
| ) |
|
Definition at line 115 of file MimeDirTest.php.
References n.
124 $mimeDir =
new MimeDir();
125 $mimeDir->setCharset(
'Windows-1252');
126 $vcard = $mimeDir->parse($vcard);
127 $this->assertEquals(
"Euro \xE2\x82\xAC", $vcard->FN->getValue());
if(! $in) print Initializing normalization quick check tables n
◆ testDecodeWindows1252Inline()
Sabre\VObject\Parser\MimeDirTest::testDecodeWindows1252Inline |
( |
| ) |
|
Definition at line 131 of file MimeDirTest.php.
References n.
136 FN;CHARSET=Windows-1252:Euro \x80
140 $mimeDir =
new MimeDir();
141 $vcard = $mimeDir->parse($vcard);
142 $this->assertEquals(
"Euro \xE2\x82\xAC", $vcard->FN->getValue());
if(! $in) print Initializing normalization quick check tables n
◆ testDontDecodeLatin1()
Sabre\VObject\Parser\MimeDirTest::testDontDecodeLatin1 |
( |
| ) |
|
Definition at line 69 of file MimeDirTest.php.
References n.
78 $mimeDir =
new MimeDir();
79 $vcard = $mimeDir->parse($vcard);
84 $this->assertEquals(
"umlaut u - \xFC", $vcard->FN->getValue());
if(! $in) print Initializing normalization quick check tables n
◆ testIgnoreCharsetVCard30()
Sabre\VObject\Parser\MimeDirTest::testIgnoreCharsetVCard30 |
( |
| ) |
|
Definition at line 54 of file MimeDirTest.php.
References n.
59 FN;CHARSET=unknown:foo-bar - \xFC
63 $mimeDir =
new MimeDir();
64 $vcard = $mimeDir->parse($vcard);
65 $this->assertEquals(
"foo-bar - \xFC", $vcard->FN->getValue());
if(! $in) print Initializing normalization quick check tables n
◆ testParseError()
Sabre\VObject\Parser\MimeDirTest::testParseError |
( |
| ) |
|
Definition at line 16 of file MimeDirTest.php.
18 $mimeDir =
new MimeDir();
19 $mimeDir->parse(
fopen(__FILE__,
'a'));
The documentation for this class was generated from the following file: