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));
26 $result = Reader::read($stream);
28 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
29 $this->assertEquals('VCALENDAR', $result->name);
30 $this->assertEquals(0, count($result->children));
38 $result = Reader::read($data);
40 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
41 $this->assertEquals('VCALENDAR', $result->name);
42 $this->assertEquals(0, count($result->children));
50 $result = Reader::read($data);
52 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
53 $this->assertEquals('VCALENDAR', $result->name);
54 $this->assertEquals(0, count($result->children));
65 $result = Reader::read($data);
76 $result = Reader::read($data);
83 $result = Reader::read($data);
85 $result = $result->SUMMARY;
86 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
87 $this->assertEquals('SUMMARY', $result->name);
88 $this->assertEquals('propValue', $result->getValue());
95 $result = Reader::read($data);
97 $result = $result->SUMMARY;
98 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
99 $this->assertEquals('SUMMARY', $result->name);
100 $this->assertEquals("Line1\nLine2\nLine3\\Not the 4th line!", $result->getValue());
107 $result = Reader::read($data);
109 $result = $result->DTSTART;
110 $this->assertInstanceOf('Sabre\\VObject\\Property\\ICalendar\\DateTime', $result);
111 $this->assertEquals('DTSTART', $result->name);
112 $this->assertEquals('20110529', $result->getValue());
119 $result = Reader::read($data);
121 $result = $result->DTSTART;
122 $this->assertInstanceOf('Sabre\\VObject\\Property\\ICalendar\\DateTime', $result);
123 $this->assertEquals('DTSTART', $result->name);
124 $this->assertEquals('20110529', $result->getValue());
134 $result = Reader::read($data);
146 $result = Reader::read(implode("\r\n",$data));
148 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
149 $this->assertEquals('VCALENDAR', $result->name);
150 $this->assertEquals(1, count($result->children()));
151 $this->assertInstanceOf('Sabre\\VObject\\Property', $result->children[0]);
152 $this->assertEquals('PROPNAME', $result->children[0]->name);
153 $this->assertEquals('propValue', $result->children[0]->getValue());
168 $result = Reader::read(implode("\r\n",$data));
170 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
171 $this->assertEquals('VCALENDAR', $result->name);
172 $this->assertEquals(1, count($result->children()));
173 $this->assertInstanceOf('Sabre\\VObject\\Component', $result->children[0]);
174 $this->assertEquals('VTIMEZONE', $result->children[0]->name);
175 $this->assertEquals(1, count($result->children[0]->children()));
176 $this->assertInstanceOf('Sabre\\VObject\\Component', $result->children[0]->children[0]);
177 $this->assertEquals('DAYLIGHT', $result->children[0]->children[0]->name);
185 $result = Reader::read($data);
187 $result = $result->PROPNAME;
189 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
190 $this->assertEquals('PROPNAME', $result->name);
191 $this->assertEquals('propValue', $result->getValue());
192 $this->assertEquals(1, count($result->parameters()));
193 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
194 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
201 $result = Reader::read($data);
203 $result = $result->PROPNAME;
205 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
206 $this->assertEquals('PROPNAME', $result->name);
207 $this->assertEquals('propValue', $result->getValue());
208 $this->assertEquals(1, count($result->parameters()));
209 $this->assertEquals('N', $result->parameters['N']->name);
210 $this->assertEquals('1,2,3,4,5,6,7,8,9,10,"11"', $result->parameters['N']->getValue());
211 … $this->assertEquals(array(1,2,3,4,5,6,"7,8",9,10,'"11"'), $result->parameters['N']->getParts());
217 $result = Reader::read($data);
219 $result = $result->PROPNAME;
221 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
222 $this->assertEquals('PROPNAME', $result->name);
223 $this->assertEquals('propValue', $result->getValue());
224 $this->assertEquals(1, count($result->parameters()));
225 $this->assertEquals('TYPE', $result->parameters['TYPE']->name);
226 $this->assertEquals('WORK,VOICE,PREF', $result->parameters['TYPE']->getValue());
227 … $this->assertEquals(array('WORK', 'VOICE', 'PREF'), $result->parameters['TYPE']->getParts());
234 $result = Reader::read($data);
236 $result = $result->PROPNAME;
238 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
239 $this->assertEquals('PROPNAME', $result->name);
240 $this->assertEquals('propValue', $result->getValue());
241 $this->assertEquals(1, count($result->parameters()));
242 $this->assertEquals('TYPE', $result->parameters['TYPE']->name);
243 $this->assertTrue($result->parameters['TYPE']->noName);
244 $this->assertEquals('PRODIGY', $result->parameters['TYPE']);
251 $result = Reader::read($data);
253 $result = $result->PROPNAME;
255 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
256 $this->assertEquals('PROPNAME', $result->name);
257 $this->assertEquals('propValue:anotherrandomstring', $result->getValue());
258 $this->assertEquals(1, count($result->parameters()));
259 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
260 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
267 $result = Reader::read($data);
269 $result = $result->PROPNAME;
271 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
272 $this->assertEquals('PROPNAME', $result->name);
273 $this->assertEquals('propValue', $result->getValue());
274 $this->assertEquals(2, count($result->parameters()));
275 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
276 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
277 $this->assertEquals('PARAMNAME2', $result->parameters['PARAMNAME2']->name);
278 $this->assertEquals('paramvalue2', $result->parameters['PARAMNAME2']->getValue());
285 $result = Reader::read($data);
287 $result = $result->PROPNAME;
289 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
290 $this->assertEquals('PROPNAME', $result->name);
291 $this->assertEquals('propValue', $result->getValue());
292 $this->assertEquals(1, count($result->parameters()));
293 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
294 $this->assertEquals('paramvalue', $result->parameters['PARAMNAME']->getValue());
301 $result = Reader::read($data);
303 $result = $result->propname;
305 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
306 $this->assertEquals('PROPNAME', $result->name);
307 $this->assertEquals('propValue', $result->getValue());
309 $this->assertEquals(1, count($result->parameters()));
310 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
311 … $this->assertEquals("paramvalue1\nvalue2^nvalue3", $result->parameters['PARAMNAME']->getValue());
318 $result = Reader::read($data);
319 $result = $result->propname;
321 $this->assertInstanceOf('Sabre\\VObject\\Property', $result);
322 $this->assertEquals('PROPNAME', $result->name);
323 $this->assertEquals('propValue', $result->getValue());
324 $this->assertEquals(1, count($result->parameters()));
325 $this->assertEquals('PARAMNAME', $result->parameters['PARAMNAME']->name);
326 $this->assertEquals('param:value', $result->parameters['PARAMNAME']->getValue());
340 $result = Reader::read(implode("\r\n",$data));
347 $result = Reader::read(implode("\r\n",$data), Reader::OPTION_FORGIVING);
356 $this->assertEquals($expected, $result->serialize());
371 $result = Reader::read(implode("\r\n",$data));
378 $result = Reader::read(implode("\r\n",$data), Reader::OPTION_IGNORE_INVALID_LINES);
387 $this->assertEquals($expected, $result->serialize());
441 $result = Reader::read($data);
443 $this->assertInstanceOf('Sabre\\VObject\\Component', $result);
444 $this->assertEquals('VCALENDAR', $result->name);
445 $this->assertEquals(0, count($result->children));