public function testDecode() { $source = $this ->getXmlSource(); $obj = $this ->getObject(); $this ->assertEquals(get_object_vars($obj), $this->encoder ->decode($source, 'xml')); }