/** * Make sure that formatBacktrace() accepts values from Exception::getTrace() */ function testFormatBacktrace_exception() { $e = new Exception('foo'); $msg = CRM_Core_Error::formatBacktrace($e->getTrace()); $this->assertRegexp('/CRM_Core_ErrorTest->testFormatBacktrace_exception/', $msg); }