106 Commits

Author SHA1 Message Date
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
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