Skip to content
Snippets Groups Projects
Commit 98af1cea authored by Laurent's avatar Laurent
Browse files

Storm_Test_ObjectWrapper : Dump redirections on error

parent ab116181
No related merge requests found
Pipeline #15804 passed with stage
in 21 seconds
......@@ -145,13 +145,14 @@ class Storm_Test_ObjectWrapper {
ob_end_clean();
throw new Storm_Test_ObjectWrapperException(sprintf(
"Cannot find redirection for %s::%s(%s) %s",
"Cannot find redirection for %s::%s(%s) %s\n\nRedirections:\n\n%s",
get_class($this->_wrapped_object),
$method,
$dump,
($this->_wrapped_object instanceof Storm_Test_Mock)
? '[' . $this->_wrapped_object->toString() . ']'
: ''));
: '',
print_r($this->_redirections, true)));
}
......@@ -305,4 +306,4 @@ class Storm_Test_ObjectWrapper {
}
}
?>
\ No newline at end of file
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment