assertInstanceOf('Sabre\CalDAV\Xml\Property\AllowedSharingModes', $sccs); } /** * @depends testSimple */ function testSerialize() { $property = new AllowedSharingModes(true,true); $this->namespaceMap[CalDAV\Plugin::NS_CALDAV] = 'cal'; $this->namespaceMap[CalDAV\Plugin::NS_CALENDARSERVER] = 'cs'; $xml = $this->write(['{DAV:}root' => $property]); $this->assertXmlStringEqualsXmlString( ' ', $xml); } }