Flavio Copes
6fe35892a9
Skip test if Error class does not exist
2015-12-14 16:05:57 +01:00
Flavio Copes
068348a648
Add unit test, fails on PHP7 if Inspector::getTrace() requires Exception instead of also allowing Error
2015-12-14 15:21:21 +01:00
Denis Sokolov
a6aaf57c03
Move SOAP handler out
2015-12-13 01:08:09 +02:00
Denis Sokolov
753557c09f
Merge branch 'php7'
...
BC: typehint
Conflicts:
src/Whoops/Exception/Inspector.php
2015-12-12 22:41:12 +02:00
Denis Sokolov
4cbf3a8bda
Fix flaky PlainTextHandler tests by replacing exact matching of strings
2015-12-12 22:17:19 +02:00
Markus Staab
fa4206ec14
Removed PlainTextHandler->(onlyForCommandLine|outputOnlyIfCommandLine). Added Whoops\isCommandLine() as a more flexible successor.
2015-11-29 16:22:11 +01:00
John S Long
fe32a402b0
Revert changes to InspectorTest
2015-07-14 08:26:47 -05:00
John S Long
14818029f7
Remove exception from imports, correct Throwable doc typehints
2015-07-14 08:11:32 -05:00
John S Long
7ec3444b79
Change Exception to Throwable in documentation
2015-06-14 18:23:43 -05:00
John S Long
e47c104d21
Rough changes to get PHP7 working.
2015-05-20 13:40:12 -05:00
Geolim4
69042b38f4
Changed: getEditorHref() no longer return an array or ajax/url, replaced by getEditorAjax() instead.
2015-05-15 16:57:47 +02:00
Geolim4
d3d3b33dce
PHPUnit_Framework_Assert::markTestSkipped() returns void, no need to return anything.
2015-05-15 03:50:38 +02:00
Geolim4
ccd137eec8
Callable editor can now return an array
2015-05-15 03:49:13 +02:00
Geolim4
c522ade8a7
Fixed incorrect namespace path in phpDoc comment.
2015-05-15 03:10:21 +02:00
Markus Staab
6a82df42df
error-code should be wrapped in ErrorException->severity. fixes #267 .
2015-03-13 10:41:22 +01:00
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
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
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