Пример #1
0
 public function testWhereWithValueToAndFromStringShouldMatch()
 {
     $this->where->valueString = "Test Value String";
     $this->where->rel = "http://schemas.google.com/g/2005#event.alternate";
     $this->where->label = "Test Label";
     $whereXml = $this->where->saveXML();
     $newWhere = new Zend_Gdata_Extension_Where();
     $newWhere->transferFromXML($whereXml);
     $newWhereXml = $newWhere->saveXML();
     $this->assertTrue($whereXml == $newWhereXml);
     $this->assertEquals("Test Value String", $this->where->valueString);
     $this->assertEquals("http://schemas.google.com/g/2005#event.alternate", $this->where->rel);
     $this->assertEquals("Test Label", $this->where->label);
 }