function testAttribute() { $decoder = new XmlDecoder(); $attributeValue = $decoder->decodeAttribute($this->getXml()->attribute[0]); $this->assertEquals('b9i9ssr4lxk4', $attributeValue->getAttribute()->getUid()); $this->assertEquals('Barva', $attributeValue->getAttribute()->getName()); $this->assertEquals(['bílá', 'modrá', 'ocelová'], $attributeValue->getValues()); }