30        if (func_num_args() == 0) {
 
   44            'error' => Formatter::formatExceptionAsDataArray(
 
   60        return 'application/xml';
 
   70        assert(
'is_array($data) || $node instanceof Traversable');
 
   73            if (is_numeric(
$key)) {
 
   75                $key = 
"unknownNode_". (string) 
$key;
 
   79            $key = preg_replace(
'/[^a-z0-9\-\_\.\:]/i', 
'', 
$key);
 
   81            if (is_array($value)) {
 
   82                $child = $node->addChild(
$key);
 
   85                $value = str_replace(
'&', 
'&', print_r($value, 
true));
 
   86                $node->addChild(
$key, $value);
 
  101        assert(
'is_array($data) || $node instanceof Traversable');
 
  103        $node = simplexml_load_string(
"<?xml version='1.0' encoding='utf-8'?><root />");
 
An exception for terminatinating execution or to throw for unit testing.
Abstract implementation of a Handler.
const QUIT
The Handler has handled the Throwable in some way, and wishes to quit/stop execution.
Catches an exception and converts it to an XML response.
static addDataToNode(\SimpleXMLElement $node, $data)
addTraceToOutput($returnFrames=null)
static toXml($data)
The main function for converting to an XML document.
Whoops - php errors for cool kids.