Beispiel #1
0
 public function testContentWithSrcAndTypeToAndFromStringShouldMatch() {
     $this->content->src = 'http://www.example.com/image.png';
     $this->content->type = 'image/png';
     $contentXml = $this->content->saveXML();
     $newContent = new Extension\Content();
     $newContent->transferFromXML($contentXml);
     $newContentXml = $newContent->saveXML();
     $this->assertEquals($newContentXml, $contentXml);
     $this->assertEquals('http://www.example.com/image.png', $newContent->src);
     $this->assertEquals('image/png', $newContent->type);
 }