|
@@ -32,6 +32,7 @@ use stdClass;
|
|
|
use TestApp\Error\TestDebugger;
|
|
use TestApp\Error\TestDebugger;
|
|
|
use TestApp\Error\Thing\DebuggableThing;
|
|
use TestApp\Error\Thing\DebuggableThing;
|
|
|
use TestApp\Error\Thing\SecurityThing;
|
|
use TestApp\Error\Thing\SecurityThing;
|
|
|
|
|
+use TestApp\Utility\ThrowsDebugInfo;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* DebuggerTest class
|
|
* DebuggerTest class
|
|
@@ -520,6 +521,18 @@ TEXT;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * Test exportVar with an exception during __debugInfo()
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return void
|
|
|
|
|
+ */
|
|
|
|
|
+ public function testExportVarInvalidDebugInfo()
|
|
|
|
|
+ {
|
|
|
|
|
+ $result = Debugger::exportVar(new ThrowsDebugInfo());
|
|
|
|
|
+ $expected = '(unable to export object: from __debugInfo)';
|
|
|
|
|
+ $this->assertTextEquals($expected, $result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* Text exportVarAsNodes()
|
|
* Text exportVarAsNodes()
|
|
|
*
|
|
*
|
|
|
* @return void
|
|
* @return void
|