annotate vendor/sabre/vobject/tests/VObject/Parser/MimeDirTest.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
1 <?php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
3 namespace Sabre\VObject\Parser;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
4
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
5 /**
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
6 * Note that most MimeDir related tests can actually be found in the ReaderTest
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
7 * class one level up.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
8 */
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
9 class MimeDirTest extends \PHPUnit_Framework_TestCase {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
10
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
11 /**
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
12 * @expectedException \Sabre\VObject\ParseException
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
13 */
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
14 function testParseError() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
15
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
16 $mimeDir = new MimeDir();
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
17 $mimeDir->parse(fopen(__FILE__,'a'));
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
18
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
19 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
20
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
21 }