/** * Create new Gnip Rule -- with string values -- then validate against returned XML values. * * @access public * @param void * @return void */ function testToXml() { $expected_xml = '<rule type="actor" value="testActor"/>'; $rule = new Services_Gnip_Rule("actor", "testActor"); $this->assertEquals($expected_xml, $rule->toXML()); }
function testToXml() { $expected_xml = '<rule type="actor">testActor</rule>'; $rule = new Services_Gnip_Rule('actor', 'testActor'); $this->assertEquals($expected_xml, $rule->toXML()); }