/** * @depends testSimple */ function testGetProperties() { $question = array('{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set', '{urn:ietf:params:xml:ns:caldav}supported-calendar-data', '{urn:ietf:params:xml:ns:caldav}supported-collation-set'); $result = $this->calendar->getProperties($question); foreach ($question as $q) { $this->assertArrayHasKey($q, $result); } $this->assertEquals(array('VEVENT', 'VTODO'), $result['{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set']->getValue()); $this->assertTrue($result['{urn:ietf:params:xml:ns:caldav}supported-collation-set'] instanceof Sabre_CalDAV_Property_SupportedCollationSet); }