summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix level map override when using setExceptionHandler, fixes #1005Jordi Boggiano2017-06-191-19/+5
|
* Merge branch '1.x'Jordi Boggiano2017-06-194-8/+30
|\
| * Fix DyanmoDbHandler test suiteJordi Boggiano2017-06-191-2/+9
| |
| * Make sure this works on any hostnameJordi Boggiano2017-06-191-1/+1
| |
| * Fix SwiftMailerHandler support for Swiftmailer 6.0+Alex Rock Ancelet2017-06-191-1/+1
| |
| * Support HeadlessChrome (#966)Douglas Reith2017-06-191-1/+16
| | | | | | * Support HeadlessChrome
| * Use first day/first month for date calculations in RotatingFileHandlerTest ↵Remon van de Kamp2017-06-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#963) When making the calculations for the filename of the current month using date('d') does not work because you may run into the situation where you run the tests on a day in a month that does not exist in the previous month, for example March 30th. As there is no February 30th, PHP will skip ahead to March, and the filename for the "previous" month will incorrectly be "2017-03" instead of the expected "2017-02". Using the first day of the month instead of the current day of the month solves this problem. For consistency we now also use the first month of each year for calculations regarding years even if this is not necessary, it would break symmetry if we don't, plus it makes it clear that the value is not relevant in the calculation.
* | Use callable typehint where possible + Removed dead code (#996)Grégoire Pineau2017-06-191-11/+3
| | | | | | | | | | | | | | | | * Removed dead code * Use callable typehint where possible * Removed PHP5.3 workaround
* | LogstashFormatter: format context and extra fields as JSON objects (#976)Elnur Abdurrakhimov2017-06-191-11/+15
| | | | | | | | | | BC Break * For Logstash, format context as object instead of individual fields * For Logstash, format extra as object instead of individual fields
* | Avoid assertion-free testJordi Boggiano2017-06-191-0/+1
| |
* | Use namespaced phpunit classes, fixes #983Jordi Boggiano2017-06-1914-14/+14
| |
* | Make sure this works on any hostnameJordi Boggiano2017-06-191-1/+1
| |
* | Merge remote-tracking branch 'chrisforrence/tests-replace-deprecated-methods'Jordi Boggiano2017-06-194-6/+9
|\ \
| * | Split expectException calls with two parameters into the proper two callsChris Forrence2017-03-212-3/+6
| | |
| * | Replace deprecated setExpectedException methods with expectExceptionChris Forrence2017-03-214-6/+6
| | |
* | | Rename level_num to monolog_level, refs #960Jordi Boggiano2017-06-181-1/+1
| | |
* | | Merge remote-tracking branch 'pupsschluepfer/master'Jordi Boggiano2017-06-181-0/+1
|\ \ \
| * \ \ Merge remote-tracking branch 'upstream/master'Benjamin Pentzold2017-05-221-0/+4
| |\ \ \
| * | | | map loglevel (int-value) to log-message, as wellBenjamin Pentzold2017-03-281-0/+1
| | |/ / | |/| |
* | | | Merge branch '1.x'Jordi Boggiano2017-06-181-4/+28
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/|
| * | Use GELF max length per field and make max length configurable in constructorEnleur2017-04-071-4/+28
| | |
| * | Fix test moarJordi Boggiano2017-03-201-3/+5
| | |
| * | Fix test classJordi Boggiano2017-03-201-1/+1
| | |
| * | Remove return annotationsJordi Boggiano2017-03-201-2/+2
| | |
| * | Remove strict types from test suiteJordi Boggiano2017-03-201-1/+1
| | |
* | | Skipping DateTime microsecond test in PHP 7.1.3, because of ↵Sam-Burns2017-04-011-0/+4
| |/ |/| | | | | https://bugs.php.net/bug.php?id=74258
* | Fix testsJordi Boggiano2017-03-201-2/+2
| |
* | CS fixesJordi Boggiano2017-03-207-22/+25
| |
* | Merge branch '1.x'Jordi Boggiano2017-03-201-1/+1
|\ \ | |/
| * Fix 5.3 supportJordi Boggiano2017-03-201-3/+3
| |
| * Add level parameter to payload when reporting Rollbar exceptions (#852)Erik Johansson2017-03-201-0/+82
| |
* | Add level parameter to payload when reporting Rollbar exceptions (#852)Erik Johansson2017-03-191-0/+82
| |
* | Merge branch '1.x'Jordi Boggiano2017-03-171-3/+14
|\ \ | |/
| * Fix testsJordi Boggiano2017-03-171-2/+2
| |
| * Fix array syntax for Travis CIont2017-03-151-2/+2
| |
| * Complete rfc5424 header for SyslogUdpHandleront2017-03-151-4/+15
| | | | | | | | | | WARN: this commit adds backward incompatibility for the SyslogUdpHandler constructor.
* | Handle DateTime objects in formatted messages (#940)Piers Warmers2017-03-141-0/+17
| | | | | | | | | | | | | | | | | | | | * Handle DateTime objects in formatted meessages * Use interface to catch both DateTime and DateTimeImmutable * Maintain formatting standards. * Visibility to private.
* | Merge branch '1.x'Jordi Boggiano2017-03-121-1/+3
|\ \ | |/
| * Allow to set custom event_id [LEGACY] (#930)Tim Strijdhorst2017-03-121-1/+3
| | | | | | | | | | | | | | | | | | | | * +allow to set a custom event_id as an extra parameter instead of letting Raven generate a UUIDv4 * +CS * +CS * +verbose array syntax because of PHP 5.3 support
* | Improves code coverage (#926)Níckolas Daniel da Silva2017-03-121-2/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 100% coverage on ErrorHandler::codeToString * 100% coverage on ErrorHandler::registerFatalHandler * fix typo * covers ErrorHandler::register() and left conditions on purpose * 100% coverage on ErrorHandler::registerErrorHandler() * 100% coverage on ErrorHandler::registerExceptionHandler() * Checks for possible interface breaking changes * 100% coverage on ErrorHandler::codeToString 100% coverage on ErrorHandler::registerFatalHandler covers ErrorHandler::register() and left conditions on purpose 100% coverage on ErrorHandler::registerErrorHandler() 100% coverage on ErrorHandler::registerExceptionHandler()
* | Logmatic fix (#914)Guillaume Polaert2017-03-121-2/+2
| | | | | | | | * Adding the marker field to improve the Logmatic.io compatibilty
* | Merge branch '1.x'Jordi Boggiano2016-12-162-59/+106
|\ \ | |/
| * Slack improvements (#894)Anton Nizhegorodov2016-12-132-59/+106
| | | | | | | | | | | | | | | | | | | | - [x] Exclude `extra`/`context`, `datetime`, `level` from message when attachment is used - [x] Use `ts` attachment key to display `datetime` considering user timezone - [x] [Support](https://github.com/Seldaek/monolog/pull/846#issuecomment-249528719) custom user images - [x] [Allow](https://github.com/Seldaek/monolog/pull/894#issuecomment-263532399) to setup username from slack - [x] [Improve](https://github.com/Seldaek/monolog/pull/846#issuecomment-261529198) array formatting within `context`/`extra` - [x] [Support](https://github.com/Seldaek/monolog/issues/745) `include_stacktraces` option when attachment is not used and always include stacktraces when attachment is used - [x] Support `extra`/`context` field exclusion - [x] Update tests
* | Remove remaining artifacts from mlehner/gelf-php (#896)Remon van de Kamp2016-12-133-121/+1
| |
* | Fix testsJordi Boggiano2016-11-263-3/+3
| |
* | Merge branch '1.x'Jordi Boggiano2016-11-264-15/+513
|\ \ | |/
| * Add unit test for SlackbotHandlerHaralan Dobrev2016-11-191-0/+47
| |
| * Add unit tests for SlackWebhookHandlerHaralan Dobrev2016-11-191-0/+106
| |
| * Do not put empty Slack attachments array by defaultHaralan Dobrev2016-11-191-3/+2
| |
| * Fix SlackHandlerAnton Nizhegorodov2016-11-191-1/+1
| | | | | | | | Slack API requires to json_encode the attachment field.
| * Fix SlackRecordTestAnton Nizhegorodov2016-11-191-3/+2
| |
| * Update SlackHandler tests && allow SlackRecord formatter change after ↵Anton Nizhegorodov2016-11-192-5/+20
| | | | | | | | construction
| * Make sure extra/context variables are stringified when more than one level deepAnton Nizhegorodov2016-11-191-1/+1
| |
| * Add more tests to SlackRecordTestAnton Nizhegorodov2016-11-191-0/+247
| | | | | | | | | | Conflicts: - tests/Monolog/Handler/Slack/SlackRecordTest.php - merged the tests
| * Add initial tests for SlackRecordHaralan Dobrev2016-11-191-0/+84
| |
| * Use constants for Slack colorsHaralan Dobrev2016-11-191-8/+9
| |
| * Fix PHP7.1 DateTime supportJordi Boggiano2016-11-171-1/+1
| |
* | Merge branch '1.x'Jordi Boggiano2016-11-161-0/+4
|\ \ | |/
| * Make protected generic methods publicJulien Falque2016-11-161-0/+4
| |
* | Fix microseconds support on 7.1, and enable it by default as 7.1 has no perf ↵Jordi Boggiano2016-11-142-5/+7
| | | | | | | | cost anymore
* | Fix UdpSocket testsJordi Boggiano2016-11-141-1/+1
| |
* | Merge pull request #868 from ComaVN/noop-handlerJordi Boggiano2016-11-131-0/+49
|\ \ | | | | | | Added the NoopHandler.
| * | removed unused data provider in testRoel Harbers2016-10-121-10/+0
| | |
| * | Added the NoopHandler.Roel Harbers2016-10-121-0/+59
| | | | | | | | | | | | | | | | | | This handler handles anything, but does nothing, and does not stop bubbling to the rest of the stack. This can be used for testing, or to disable a handler when overriding a configuration without influencing the rest of the stack.
* | | Merge branch '1.x'Jordi Boggiano2016-11-131-0/+26
|\ \ \ | | |/ | |/|
| * | Make the RavenHandler picks the first highest record as mainTugdual Saunier2016-10-131-0/+26
| | |
* | | Fix Redis test failuresJordi Boggiano2016-11-131-0/+12
| | |
* | | Fix tests for sentry/sentry >= 0.16.0 (and < 1.0)Shawn Iwinski2016-11-062-2/+34
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | From composer.json: `"sentry/sentry": "^0.13"` Latest 0.x `sentry/sentry`: 0.22.0 sentry/sentry 0.16.0 changed the function signature of Raven_Client::capture(): 0.16.0: `public function capture($data, $stack = null, $vars = null)` 0.15.0: `public function capture($data, $stack, $vars = null)` While the test suite silently passes with PHP < 7.1, running the test suite with PHP 7.1 fails with the following error: `Declaration of Monolog\Handler\MockRavenClient::capture($data, $stack, $vars = NULL) should be compatible with Raven_Client::capture($data, $stack = NULL, $vars = NULL)`
* | Merge branch '1.x'Jordi Boggiano2016-10-031-0/+18
|\ \ | |/
| * Add total amount of items when aborting traversable normalizationJordi Boggiano2016-10-031-0/+18
| |
* | Fix type errors, thanks phanJordi Boggiano2016-09-252-13/+13
| |
* | When newlines are allowed in LineFormatter, unpack json_encoded blobs ↵Jordi Boggiano2016-09-251-0/+18
| | | | | | | | containing newlines into multiline strings, fixes #752
* | CS fixesJordi Boggiano2016-09-2512-23/+25
| |
* | Merge branch '1.x'Jordi Boggiano2016-09-251-1/+20
|\ \ | |/
| * Make sure SyslogUdpHandler does not create empty frames where not necessary, ↵Jordi Boggiano2016-09-251-1/+17
| | | | | | | | fixes #841
* | Merge branch '1.x'Jordi Boggiano2016-09-251-0/+41
|\ \ | |/
| * Make hg test optionalJordi Boggiano2016-09-251-0/+10
| |
| * add MercurialProcessorJonathan A. Schweder2016-09-251-0/+31
| |
* | Maybe now?Jordi Boggiano2016-09-251-2/+2
| |
* | Fix datetime rounding errors on travisJordi Boggiano2016-09-251-4/+3
| |
* | Undo this LocalSocket fiasco, fix tests for latest phpunitJordi Boggiano2016-09-2515-443/+441
| |
* | Fixing the socket mess, maybe.Jordi Boggiano2016-09-199-349/+307
| |
* | Fix lower testsJordi Boggiano2016-09-191-21/+43
| |
* | Fix a ton of tests for latest phpunit and turn faked-stream tests into real ↵Jordi Boggiano2016-09-1918-400/+442
| | | | | | | | network tests with a local server
* | Fixes microsecond timezone support, fixes #832Jordi Boggiano2016-09-191-0/+50
| |
* | Merge branch '1.x'Jordi Boggiano2016-09-181-29/+85
|\ \ | |/
| * Refactored JsonFormatter tests to more readable structureNerijus Eimanavičius2016-08-281-39/+72
| |
| * Better support for PHP7 \ThrowableNerijus Eimanavičius2016-08-281-0/+28
| |
* | Merge branch '1.x'Jordi Boggiano2016-07-292-0/+45
|\ \ | |/
| * Fix testsJordi Boggiano2016-07-292-3/+7
| |
| * Merge remote-tracking branch 'francisbesset/feat-soapfault' into 1.xJordi Boggiano2016-07-291-0/+23
| |\
| | * Added informations to normalize a SoapFaultFrancis Besset2016-07-201-0/+23
| | |
| * | Allow formatting of message by setting a line formatter on SlackHandler, ↵Jordi Boggiano2016-07-291-0/+18
| |/ | | | | | | fixes #829
* | Merge branch '1.x', fixes #771Jordi Boggiano2016-07-291-0/+4
|\ \ | |/
* | Allow alternative date separators for RotatingFileHandlerRemon van de Kamp2016-07-141-0/+12
| | | | | | | | | | | | Currently only dashes are allowed in date formats (i.e., "Y-m-d"). This commit also allows slashes, underscores and dots to be used instead of only dashes for more flexibility.
* | CS fixesJordi Boggiano2016-07-022-2/+2
| |
* | Merge remote-tracking branch 'JulienBreux/feature/logmatic'Jordi Boggiano2016-07-022-0/+120
|\ \
| * | Add Logmatic.ioJulien Breux2016-06-282-0/+120
| | |
* | | Merge branch '1.x'Jordi Boggiano2016-07-021-0/+23
|\ \ \ | | |/ | |/|
| * | Fix GroupHandler::handleBatch when the handler has processors, fixes #814Jordi Boggiano2016-07-021-0/+23
| | |