function testImage() { $decoder = new XmlDecoder(); $image = $decoder->decodeImage($this->getXml()->img[0]); $this->assertEquals('v2ae564zkhcs', $image->getUid()); $this->assertEquals(new \DateTime('2016-03-07 15:30:04'), $image->getUpdated()); $this->assertEquals('https://cdn.shopapi.cz/img/orig/9/8/69/986943cc69c7292472e6f9146934bfa8.jpg', $image->getUrl()); }