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