1--TEST--
2XML_Query2XML::_applyColumnStringToRecord(): check for XML_Query2XML_XMLException - unserializable data
3--SKIPIF--
4<?php require_once dirname(dirname(__FILE__)) . '/skipif.php'; ?>
5--FILE--
6<?php
7    require_once 'XML/Query2XML.php';
8    require_once dirname(dirname(__FILE__)) . '/db_init.php';
9    try {
10        $query2xml =& XML_Query2XML::factory($db);
11        $query2xml->getXML(
12            "SELECT
13                *
14             FROM
15                artist
16                LEFT JOIN album ON album.artist_id = artist.artistid",
17            array(
18                'rootTag' => 'music_library',
19                'rowTag' => 'artist',
20                'idColumn' => 'artistid',
21                'elements' => array(
22                    'artistid',
23                    'name',
24                    'birth_year',
25                    'birth_place',
26                    'genre',
27                    'xml' => '&:<no_closing_tag>'
28                )
29            )
30        );
31    } catch (XML_Query2XML_XMLException $e) {
32        echo get_class($e) . ': ' . $e->getMessage();
33    }
34?>
35--EXPECT--
36XML_Query2XML_XMLException: [elements][xml]: XML_Query2XML_Data_Processor_Unserialize: Could not unserialize the following XML data: "<no_closing_tag>"