function testGetComponents() { $comp = new Sabre_VObject_Component('VCALENDAR'); // Note that 'myProp' is ignored here. $comp->children = array(new Sabre_VObject_Property('FOO', 'BAR'), new Sabre_VObject_Component('VTODO')); $r = $comp->getComponents(); $this->assertInternalType('array', $r); $this->assertEquals(1, count($r)); $this->assertEquals('VTODO', $r[0]->name); }