We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 091a161 + c14420f commit db14749Copy full SHA for db14749
tests/VObject/Component/VTodoTest.php
@@ -88,6 +88,31 @@ public function testValidate(): void
88
self::assertEquals([], $messages);
89
}
90
91
+ public function testValidateExtraProperty(): void
92
+ {
93
+ $input = <<<HI
94
+BEGIN:VCALENDAR
95
+VERSION:2.0
96
+PRODID:YoYo
97
+BEGIN:VTODO
98
+UID:1234-21355-123156
99
+DTSTAMP:20140402T183400Z
100
+PERCENT:80
101
+END:VTODO
102
+END:VCALENDAR
103
+HI;
104
+
105
+ $obj = Reader::read($input);
106
107
+ $warnings = $obj->validate();
108
+ $messages = [];
109
+ foreach ($warnings as $warning) {
110
+ $messages[] = $warning['message'];
111
+ }
112
113
+ self::assertEquals([], $messages);
114
115
116
public function testValidateInvalid(): void
117
{
118
$input = <<<HI
0 commit comments