55 Commits

Author SHA1 Message Date
Jeroen Derks 9ea1027d37 updated line numbers in PlainTextHandlerTest to handle added lines 2019-06-26 07:45:46 +02:00
Markus Staab 3eb5a59ebd tests: Make sure we close all output-buffer we started beforehand 2019-06-24 16:00:23 +02: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
Gregor Harlan e730eb22af editor callback: allow to return empty value 2018-06-30 13:56:13 +02: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
Luis Henrique Mulinari 06bdb879d3 Fix some FQNs, typehints and unused code/vars 2017-10-09 22:25:27 +02:00
USAMI Kenta 7d7f8fef8e Modify private method test using TestCase::callPrivateMethod() 2017-06-25 05:40:55 +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
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
Denis Sokolov a6aaf57c03 Move SOAP handler out 2015-12-13 01:08:09 +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
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 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
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
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 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
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 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 1cf8483ba2 Fix incomplete tests 2013-07-15 19:02:45 +02:00
filp e6add5bd5e Fix failing PrettyPageHandler tests 2013-06-24 23:22:12 +01:00
Filipe Dobreira fce0f5247d Merge pull request #44 from cs278/feature/callable-datatables
Add support for callable generated datatables
2013-05-10 10:02:01 -07:00
Chris Smith 359b86a0dd Add test for the xdebug editor handler 2013-05-10 14:45:38 +01:00
Chris Smith 1ca56e7f33 Add unit test for callback generated data tables 2013-05-10 14:16:04 +01:00
filp f32d96bf08 Add editor feature tests 2013-04-12 12:03:11 +01:00