Beispiel #1
0
 /**
  * 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());
 }
Beispiel #2
0
 function testToXml()
 {
     $expected_xml = '<rule type="actor">testActor</rule>';
     $rule = new Services_Gnip_Rule('actor', 'testActor');
     $this->assertEquals($expected_xml, $rule->toXML());
 }