'cs', 'DAV:' => 'd', ]; function testSimple() { $eas = new EmailAddressSet(['foo@example.org']); $this->assertEquals(['foo@example.org'], $eas->getValue()); } /** * @depends testSimple */ function testSerialize() { $property = new EmailAddressSet(['foo@example.org']); $xml = $this->write([ '{DAV:}root' => $property ]); $this->assertXmlStringEqualsXmlString( ' foo@example.org ', $xml); } }