116 Commits

Author SHA1 Message Date
Denis Sokolov 96b5407262 Merge pull request #609 from tflori/plaintext-previous
add previous exception messages to plain text output
2019-06-21 12:24:50 +03:00
Denis Sokolov 8f86efb991 Merge pull request #568 from gms8994/allow-copy-paste-of-paths
Switch from div to span to allow copy and paste
2019-06-21 12:03:01 +03:00
Thomas Flori 54bf2dfdd0 suggested changes for previous output in plaintext handler 2018-12-03 10:18:07 +01:00
Thomas Flori 88b9298110 add previous exception messages to plain text output
Can be disabled via `PlainTextHandler::addPreviousToOutput(false)` and
adds lines between the exception and the trace containing the exception
and line of creator.

The method `Inspector::getFrames()` already appends all frames from the
previous exceptions. So there is no need in adding the trace for each
previous exception.

IMO the test tests something that it should not test: the output of the
line number. But that should be in a separate PR. I've at least added
constants for the line numbers so that you only have to change them once
for all tests.
2018-12-03 08:24:44 +01:00
SilverFire - Dmitry Naumenko fd596a0b39 Added tests 2018-10-22 16:10:42 +03:00
Florian Orben 352cba6165 Display messages from previous exceptions
This will add the messages of previous exceptions
to the pretty page handler's exception-message area
2018-10-20 18:10:02 +02:00
Gregor Harlan e730eb22af editor callback: allow to return empty value 2018-06-30 13:56:13 +02:00
Glendon Solsberry 9b40477a11 Switch from div to span to allow copy and paste 2018-03-08 09:10:39 -05:00
Gabriel Caruso 891f80083d Refactoring tests 2017-12-12 03:01:58 -02:00
Markus Staab 86eee8872b use a closure instead of create_function(). 2017-12-01 10:14:41 +01:00
Denis Sokolov 80e1be87b6 Merge pull request #528 from MarioBlazek/phpunit_forward_compatibility_layer
Use namespaced version of PHPUnit's TestCase
2017-11-03 21:03:30 +02:00
Markus Staab 9e7c2ea58c Prevent possible XSS via target="_blank" urls (#533) 2017-10-10 13:00:26 +03:00
Luis Henrique Mulinari 06bdb879d3 Fix some FQNs, typehints and unused code/vars 2017-10-09 22:25:27 +02:00
Mario Blažek 4028b3baf5 Use namespaced version of PHPUnit's TestCase 2017-09-29 09:41:54 +02:00
USAMI Kenta 7d7f8fef8e Modify private method test using TestCase::callPrivateMethod() 2017-06-25 05:40:55 +09:00
USAMI Kenta 46db0f150d Impl TestCase::callPrivateMethod() 2017-06-25 05:34:58 +09:00
USAMI Kenta a9ca5d639a Revert "fixup! Add Test for PlainTextHandler::dump()"
This reverts commit ee0e9c08d9.
2017-06-25 05:33:41 +09:00
USAMI Kenta ee0e9c08d9 fixup! Add Test for PlainTextHandler::dump() 2017-06-25 05:11:27 +09:00
USAMI Kenta 8504ebd760 Fix line numbers 2017-06-24 16:02:32 +09:00
USAMI Kenta 78f1da579d Add Test for PlainTextHandler::dump() 2017-06-24 16:02:00 +09:00
Gregor Harlan d2829561ca allow to change the application root path 2017-02-18 13:47:11 +01:00
Luis Henrique Mulinari f553230e79 Add some tests 2016-10-23 18:20:00 -02:00
Denis Sokolov d251b2dc1e Merge pull request #405 from shakhraj/inspector-in-data-table-callback
Pass Inspector into data table callbacks
2016-09-04 17:49:05 +03:00
kevin olson 7ddd294018 spaces removed and unused vars re-added 2016-09-04 01:08:40 -07:00
kevin olson f2c034ce4c Avoiding unused local variables 2016-09-03 23:57:50 -07:00
kevin olson 882d26344b setJsonApi() in JsonResponseHandler to allow format compliant to json:api spec #443 2016-09-03 17:48:28 -07:00
Denis Sokolov fcfe85f2f5 Merge pull request #428 from localheinz/fix/unused
Fix: Remove unused imports
2016-07-27 23:31:16 +03:00
Andreas Möller c37aae68fe Fix: Use short array syntax 2016-07-24 19:36:49 +02:00
Andreas Möller f5c2db6724 Fix: Remove unused imports 2016-07-24 19:35:27 +02:00
Andrij d0c1cba8eb Pass Inspector into data table callbacks 2016-03-21 12:46:16 +02:00
Théo FIDRY a9d343d75e Fix tests 2016-03-13 12:26:51 +00:00
Théo FIDRY 7054419685 Add RunInterface
Closes #390.
2016-03-12 13:29:53 +00:00
Denis Sokolov e18d217043 Add a workaround for dynamic default parameters in PHP 5.5 2016-01-23 23:01:04 +02:00
Guido Contreras Woda 30b6a3b264 Use a system facade to allow consumers of Whoops\Run to mock any system call that it would do through native functions. 2016-01-22 15:00:37 -03:00
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