92 Commits

Author SHA1 Message Date
Matias Griese fa66cb6c00 Fix #262: Silenced errors won't fill error_get_last() array 2015-02-17 14:42:26 +02:00
Markus Staab 8d15a7357e directly invoke callables instead of call_user_func.
eases debugging, because of simpler stacktraces.
2015-01-22 15:36:47 +01:00
Graham Campbell 0346c26963 CS fixes 2014-09-27 11:05:51 +01:00
John Long a1d1f5c10e Include exception code and, if applicable, error constant. 2014-05-24 20:06:50 -05:00
Denis Sokolov 2c89a358c8 Formatter: fix typo in test in 04a3f9b 2014-05-22 00:45:46 +09:00
Denis Sokolov 04a3f9b8c1 Formatter: a simple test for plain 2014-05-22 00:25:59 +09:00
Rick Wong f203b0489c Specify correct delimiter for preg_quote() call. 2014-04-11 16:46:02 +02:00
Denis Sokolov 70e23d1c52 TemplateHelper: improve invalid utf8 handling in hhvm 2014-03-31 07:21:53 +03:00
Denis 5f03095fae TemplateHelperTest: enable escabe broken utf8 for 5.3 2014-03-31 07:03:44 +03:00
Graham Campbell fe4666d6fa Skip on hhvm too 2014-03-30 18:30:28 +01:00
Denis Sokolov 35115f7e7f TemplateHelper: silent workaround for 5.3 for d76904a 2014-03-30 18:52:42 +02:00
Denis Sokolov d76904a0d8 TemplateHelper: fix escape with broken utf-8, close #163
If the source file that triggered an exception, had an illegal
UTF-8 sequence (because, for example, it wasn't UTF-8),
when PrettyPageHandler would try to show its source on the screen,
htmlspecialchars would return an empty string, resulting in no
source on the screen.

The workaround at least shows question marks instead of the original
characters. Guessing the correct encoding and reencoding that
to UTF-8 is too much bother at this point,
and the current approach still works well enough to see
where the error is coming from.
2014-03-30 18:39:42 +02:00
Graham Campbell 3bcc26ca77 Fixed test 2014-03-21 21:42:33 +00:00
Denis Sokolov 64b3191379 PlainTextHandlerTest: remove another brittle test 2014-03-13 11:51:45 +01:00
Denis Sokolov 2001542bca PlainTextHandlerTest: remove a brittle test 2014-03-13 11:42:48 +01:00
Denis Sokolov 7284985e63 Deprecate Zend provider explicitly, close #171 2014-03-12 18:47:27 +01:00
Denis Sokolov 3f4fc6148c Inspector: correct the order of frame stack with nested exceptions
Fixes #151, corrects d294a7e9.
2014-02-28 12:34:07 +01:00
Denis Sokolov 8f1583cc99 FrameCollection: test that getArray does not modify FrameCollection 2014-02-26 17:51:59 +01:00
Denis Sokolov 0937fed4b4 FrameCollection: implements ArrayAccess 2014-02-26 17:49:30 +01:00
Pierre-Yves Landuré 05be5673be Add a PlainTextHandler for command line and LoggerInterface (Monolog) output. 2014-02-22 13:46:51 +01:00
Graham Campbell ba509724e6 Minor fixes 2014-02-20 14:00:20 +00:00
Denis 029bb2be5a Testing: fix typo in 8a5a7bd3 2014-02-17 14:23:00 +02:00
Denis 8780bc9f09 Testing: enable more tests on HHVM using native Exceptions 2014-02-17 13:49:42 +02:00
Denis c67b08826f Tests: minor clarification on xdebug skipped test 2014-02-17 13:49:42 +02:00
Graham Campbell c515730f12 Improved hhvm support 2014-02-17 10:45:48 +00:00
Denis Sokolov 55961257c6 Merge remote-tracking branch 'origin/feature/exception-chaining'
Conflicts:
	src/Whoops/Exception/Inspector.php
2014-02-16 12:53:05 +01:00
Aleksandr Bogdanov d294a7e9ad Prepending exception frame list with previous exception's topmost part that matters for #43 2014-02-04 12:32:04 +01:00
Graham Campbell 1a06357eac CS fixes 2014-01-18 16:24:28 +00:00
Graham Campbell c28f4a7664 Fixed file endings 2013-12-31 12:13:39 +00:00
Markus Staab fbf0e1d2e2 added a SoapResponseHandler. 2013-12-27 09:02:39 +01:00
Denis Sokolov 158636c2e1 Remove whoops-test environment variable 2013-12-12 12:03:26 +02:00
Denis Sokolov 33a27e58ed Merge remote-tracking branch 'origin/feature/prettyhandler-fix'
Conflicts:
	src/Whoops/Handler/PrettyPageHandler.php
	src/Whoops/Resources/pretty-template.php
2013-12-08 23:47:17 +02:00
Denis Sokolov c4c172318e XmlResponseHandlerTest: more thorough and correct 2013-11-14 20:46:52 +01:00
Denis Sokolov adb0b51542 Document why testing the register method does not work 2013-11-06 17:35:12 +01:00
Denis Sokolov 3c19676d3c Add a simple XmlResponseHandlerTest 2013-11-06 16:39:57 +01:00
Denis Sokolov 0f0649fe0e Fix #88: xdebug file links do not depend on the extension being loaded 2013-10-14 15:31:49 +02:00
Denis Sokolov 8a5a7bd3c2 Allow catching PHP errors 2013-10-10 14:11:59 +02:00
filp 8bdce73986 Return correct http status code & message, fix #87 2013-08-06 22:57:14 +01:00
filp d4985c88b3 Fix docblock in FrameTest 2013-08-01 21:25:54 +01:00
filp a43ff35401 Multiple CS/PHPDoc fixes 2013-07-15 21:40:35 +01:00
filp fbf201b57f Merge #75 - send HTTP status code 2013-07-15 21:30:48 +01:00
Denis Sokolov 1cf8483ba2 Fix incomplete tests 2013-07-15 19:02:45 +02:00
Denis Sokolov b0e6294d31 Run: sendHttpCode 2013-07-15 19:00:04 +02:00
Denis Sokolov 13148b12c7 silenceErrorsInPaths 2013-07-11 18:13:07 +02:00
filp bcf5fdce7f Add TemplateHelper tests for variable handling 2013-06-25 11:47:16 +01:00
filp a03fbc6bf0 Add test for TemplateHelper::render 2013-06-24 23:53:45 +01:00
filp 88143a5734 Add test for TemplateHelper::slug 2013-06-24 23:43:18 +01:00
filp c68608ccc1 Move template helpers to own class 2013-06-24 23:41:00 +01:00
filp e6add5bd5e Fix failing PrettyPageHandler tests 2013-06-24 23:22:12 +01:00
filp 5d7acac270 Add initial support for chained exception inspection 2013-06-05 20:35:21 +01:00