1<?php
2
3namespace Sabre\VObject;
4
5class IssueUndefinedIndexTest extends \PHPUnit_Framework_TestCase {
6
7    /**
8     * @expectedException \Sabre\VObject\ParseException
9     */
10    function testRead() {
11
12        $input = <<<VCF
13BEGIN:VCARD
14VERSION:3.0
15PRODID:foo
16N:Holmes;Sherlock;;;
17FN:Sherlock Holmes
18ORG:Acme Inc;
19ADR;type=WORK;type=pref:;;,
20\\n221B,Baker Street;London;;12345;United Kingdom
21UID:foo
22END:VCARD
23VCF;
24
25        $vcard = Reader::read($input, Reader::OPTION_FORGIVING);
26
27    }
28
29}
30