mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[GH-ISSUE #1197] Monolog\TestCase class should be accessible for out of tree tests #495
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#495
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yann-soubeyrand on GitHub (Sep 25, 2018).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1197
When writing a custom Monolog processor as part of a Symfony application, one cannot test this processor using the Monolog\TestCase base class. Indeed this class is part of the autoload-dev section of the composer.json file and this section is only used if the composer.json file is the root one (which is not the case when Monolog is used as part of a Symfony project).
Here is an example of such a test:
@Seldaek commented on GitHub (Nov 29, 2018):
Monolog\Test\TestCase is available in src/ as of 2.0 (master branch only right now).