Definition at line 7 of file ElementListTest.php.
◆ testIterate()
Sabre\VObject\ElementListTest::testIterate |
( |
| ) |
|
Definition at line 9 of file ElementListTest.php.
References $key.
11 $cal =
new Component\VCalendar();
12 $sub = $cal->createComponent(
'VEVENT');
20 $elemList =
new ElementList($elems);
23 foreach ($elemList as
$key => $subcomponent) {
26 $this->assertInstanceOf(
'Sabre\\VObject\\Component', $subcomponent);
29 $this->assertEquals(3, $count);
30 $this->assertEquals(2,
$key);
The documentation for this class was generated from the following file: