diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2018-09-11 04:36:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 04:36:09 +0300 |
commit | b8e4d27f2151103df826e5dd643b433cdde05aaf (patch) | |
tree | b01853ecfd5ed05be679ed7e19bdc7956c64009d /tests/resources | |
parent | 13aad03773d4576188ebd2db7971337ad4edca4f (diff) |
Couple changes to aid debugging (#13269)
* Add ability to print arguments in fatal error trace.
* Add sum of blob content to analyze archive tables command.
* Fixing tests.
* Fixing tests.
* fixing test
* json_encode instead of strval
* fix test
Diffstat (limited to 'tests/resources')
-rw-r--r-- | tests/resources/trigger-fatal.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/resources/trigger-fatal.php b/tests/resources/trigger-fatal.php index 973622e6e0..3065331b65 100644 --- a/tests/resources/trigger-fatal.php +++ b/tests/resources/trigger-fatal.php @@ -12,10 +12,10 @@ $environment->init(); class MyClass { - public function triggerError() + public function triggerError($arg1, $arg2) { try { - \Piwik\ErrorHandler::pushFatalErrorBreadcrumb(static::class); + \Piwik\ErrorHandler::pushFatalErrorBreadcrumb(static::class, ['arg1' => $arg1, 'arg2' => $arg2]); $val = ""; while (true) { @@ -32,7 +32,7 @@ class MyClass \Piwik\ErrorHandler::pushFatalErrorBreadcrumb(static::class); $instance = new MyClass(); - $instance->triggerError(); + $instance->triggerError('argval', 'another'); } finally { \Piwik\ErrorHandler::popFatalErrorBreadcrumb(); } |