public function testDecodeScalar() { $source = '<?xml version="1.0"?>' . "\n" . '<response>foo</response>' . "\n"; $this ->assertEquals('foo', $this->encoder ->decode($source, 'xml')); }