function testToXml() { $expected_xml = '<type>actor</type>'; $rule = new Services_Gnip_Rule_Type('actor'); $this->assertEquals($expected_xml, $rule->toXML()); }