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