function testFromXml() { $xml = '<type>actor</type>'; $rule_type = Services_Gnip_Rule_Type::fromXml($xml); $this->assertEquals("actor", $rule_type->type); }