5use PHPUnit\Framework\TestCase;
11 $stream = fopen(
'php://memory',
'r+');
26 $objects =
new VCard($tempFile);
29 while ($objects->getNext()) {
32 $this->assertEquals(1, $count);
43DTSTAMP:20140122T233226Z
44DTSTART:20140101T050000Z
51DTSTAMP:20140122T233226Z
52DTSTART:20140101T060000Z
75UID:card-in-foo1-and-foo2
87UID:card-in-foo1-and-foo3
99 $this->assertEquals(4, $count);
111 $objects =
new VCard($tempFile);
112 $object = $objects->getNext();
114 $this->assertNull($objects->getNext());
129 $objects =
new VCard($tempFile);
130 while ($objects->getNext()) { }
145 $objects =
new VCard($tempFile);
148 while ($objects->getNext()) {
151 $this->assertEquals(2, $count);
169 $objects =
new VCard($tempFile);
172 while ($objects->getNext()) {
175 $this->assertEquals(2, $count);
185 $objects =
new VCard($tempFile);
188 while ($objects->getNext()) {
192 $this->assertEquals(1, $count);
An exception for terminatinating execution or to throw for unit testing.
testImportMultipleSeparatedWithNewLines()
testVCardImportWrongType()
@expectedException Sabre\VObject\ParseException
testVCardImportCheckInvalidArgumentException()
@expectedException \Sabre\VObject\ParseException
testVCardImportMultipleValidVCards()
testVCardImportValidVCardsWithCategories()
testVCardImportVCardWithoutUID()
testVCardImportEndOfData()
testVCardImportValidVCard()
$stream
PHP stream implementation.