Lines Matching refs:result
11 $result = Reader::read($data);
13 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
14 $this->assertEquals('VCALENDAR', $result->name);
15 $this->assertEquals(0, count($result->children()));
27 $result = Reader::read($stream);
29 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
30 $this->assertEquals('VCALENDAR', $result->name);
31 $this->assertEquals(0, count($result->children()));
39 $result = Reader::read($data);
41 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
42 $this->assertEquals('VCALENDAR', $result->name);
43 $this->assertEquals(0, count($result->children()));
51 $result = Reader::read($data);
53 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
54 $this->assertEquals('VCALENDAR', $result->name);
55 $this->assertEquals(0, count($result->children()));
66 $result = Reader::read($data);
77 $result = Reader::read($data);
84 $result = Reader::read($data);
86 $result = $result->SUMMARY;
87 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
88 $this->assertEquals('SUMMARY', $result->name);
89 $this->assertEquals('propValue', $result->getValue());
96 $result = Reader::read($data);
98 $result = $result->SUMMARY;
99 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
100 $this->assertEquals('SUMMARY', $result->name);
101 $this->assertEquals("Line1\nLine2\nLine3\\Not the 4th line!", $result->getValue());
108 $result = Reader::read($data);
110 $result = $result->DTSTART;
111 $this->assertInstanceOf('Sabre\\VObject\\Property\\ICalendar\\DateTime', $result);
112 $this->assertEquals('DTSTART', $result->name);
113 $this->assertEquals('20110529', $result->getValue());
120 $result = Reader::read($data);
122 $result = $result->DTSTART;
123 $this->assertInstanceOf('Sabre\\VObject\\Property\\ICalendar\\DateTime', $result);
124 $this->assertEquals('DTSTART', $result->name);
125 $this->assertEquals('20110529', $result->getValue());
135 $result = Reader::read($data);
147 $result = Reader::read(implode("\r\n", $data));
149 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
150 $this->assertEquals('VCALENDAR', $result->name);
151 $this->assertEquals(1, count($result->children()));
152 $this->assertInstanceOf('Sabre\\VObject\\Property', $result->children()[0]);
153 $this->assertEquals('PROPNAME', $result->children()[0]->name);
154 $this->assertEquals('propValue', $result->children()[0]->getValue());
169 $result = Reader::read(implode("\r\n", $data));
171 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
172 $this->assertEquals('VCALENDAR', $result->name);
173 $this->assertEquals(1, count($result->children()));
174 $this->assertInstanceOf('Sabre\\VObject\\Component', $result->children()[0]);
175 $this->assertEquals('VTIMEZONE', $result->children()[0]->name);
176 $this->assertEquals(1, count($result->children()[0]->children()));
177 $this->assertInstanceOf('Sabre\\VObject\\Component', $result->children()[0]->children()[0]);
178 $this->assertEquals('DAYLIGHT', $result->children()[0]->children()[0]->name);
186 $result = Reader::read($data);
188 $result = $result->PROPNAME;
190 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
191 $this->assertEquals('PROPNAME', $result->name);
192 $this->assertEquals('propValue', $result->getValue());
193 $this->assertEquals(1, count($result->parameters()));
194 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
195 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
202 $result = Reader::read($data);
204 $result = $result->PROPNAME;
206 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
207 $this->assertEquals('PROPNAME', $result->name);
208 $this->assertEquals('propValue', $result->getValue());
209 $this->assertEquals(1, count($result->parameters()));
210 $this->assertEquals('N', $result->parameters['N']->name);
211 $this->assertEquals('1,2,3,4,5,6,7,8,9,10,"11"', $result->parameters['N']->getValue());
212 …$this->assertEquals([1, 2, 3, 4, 5, 6, "7,8", 9, 10, '"11"'], $result->parameters['N']->getParts()…
219 $result = Reader::read($data);
221 $result = $result->PROPNAME;
223 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
224 $this->assertEquals('PROPNAME', $result->name);
225 $this->assertEquals('propValue', $result->getValue());
226 $this->assertEquals(1, count($result->parameters()));
227 $this->assertEquals('TYPE', $result->parameters['TYPE']->name);
228 $this->assertEquals('WORK,VOICE,PREF', $result->parameters['TYPE']->getValue());
229 $this->assertEquals(['WORK', 'VOICE', 'PREF'], $result->parameters['TYPE']->getParts());
236 $result = Reader::read($data);
238 $result = $result->PROPNAME;
240 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
241 $this->assertEquals('PROPNAME', $result->name);
242 $this->assertEquals('propValue', $result->getValue());
243 $this->assertEquals(1, count($result->parameters()));
244 $this->assertEquals('TYPE', $result->parameters['TYPE']->name);
245 $this->assertTrue($result->parameters['TYPE']->noName);
246 $this->assertEquals('PRODIGY', $result->parameters['TYPE']);
253 $result = Reader::read($data);
255 $result = $result->PROPNAME;
257 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
258 $this->assertEquals('PROPNAME', $result->name);
259 $this->assertEquals('propValue:anotherrandomstring', $result->getValue());
260 $this->assertEquals(1, count($result->parameters()));
261 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
262 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
269 $result = Reader::read($data);
271 $result = $result->PROPNAME;
273 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
274 $this->assertEquals('PROPNAME', $result->name);
275 $this->assertEquals('propValue', $result->getValue());
276 $this->assertEquals(2, count($result->parameters()));
277 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
278 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
279 $this->assertEquals('PARAMNAME2', $result->parameters['PARAMNAME2']->name);
280 $this->assertEquals('paramvalue2', $result->parameters['PARAMNAME2']->getValue());
287 $result = Reader::read($data);
289 $result = $result->PROPNAME;
291 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
292 $this->assertEquals('PROPNAME', $result->name);
293 $this->assertEquals('propValue', $result->getValue());
294 $this->assertEquals(1, count($result->parameters()));
295 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
296 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
303 $result = Reader::read($data);
305 $result = $result->PROPNAME;
307 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
308 $this->assertEquals('PROPNAME', $result->name);
309 $this->assertEquals('propValue', $result->getValue());
311 $this->assertEquals(1, count($result->parameters()));
312 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
313 … $this->assertEquals("paramvalue1\nvalue2^nvalue3", $result->parameters['PARAMNAME']->getValue());
320 $result = Reader::read($data);
321 $result = $result->PROPNAME;
323 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
324 $this->assertEquals('PROPNAME', $result->name);
325 $this->assertEquals('propValue', $result->getValue());
326 $this->assertEquals(1, count($result->parameters()));
327 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
328 $this->assertEquals('param:value', $result->parameters['PARAMNAME']->getValue());
342 $result = Reader::read(implode("\r\n", $data));
349 $result = Reader::read(implode("\r\n", $data), Reader::OPTION_FORGIVING);
358 $this->assertEquals($expected, $result->serialize());
373 $result = Reader::read(implode("\r\n", $data));
380 $result = Reader::read(implode("\r\n", $data), Reader::OPTION_IGNORE_INVALID_LINES);
389 $this->assertEquals($expected, $result->serialize());
443 $result = Reader::read($data);
445 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
446 $this->assertEquals('VCALENDAR', $result->name);
447 $this->assertEquals(0, count($result->children()));
461 $result = Reader::readXML($data);
463 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
464 $this->assertEquals('VCALENDAR', $result->name);
465 $this->assertEquals(0, count($result->children()));
483 $result = Reader::readXML($stream);
485 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
486 $this->assertEquals('VCALENDAR', $result->name);
487 $this->assertEquals(0, count($result->children()));