summaryrefslogtreecommitdiffstats
path: root/tests/Monolog/Handler/RotatingFileHandlerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '1.x'Jordi Boggiano2017-06-191-4/+4
|\
| * 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.
| * Fix testsJordi Boggiano2016-07-291-3/+3
| |
* | 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
* | Avoid assertion-free testJordi Boggiano2017-06-191-0/+1
| |
* | CS fixesJordi Boggiano2016-09-251-1/+1
| |
* | 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.
* | Move to strict mode and fix testsJordi Boggiano2016-05-271-3/+3
| |
* | CS fixesJordi Boggiano2016-05-261-31/+30
| |
* | Make TestCase class available to dependents to help with testingJordi Boggiano2016-05-201-1/+1
| |
* | Merge remote-tracking branch 'rpkamp/master'Jordi Boggiano2016-05-201-12/+6
|\ \ | |/ |/|
| * Lock down RotateFileHandler to prevent errors with rotationRemon van de Kamp2016-04-181-10/+82
| | | | | | | | | | | | | | - Require the dateFormat to be one of three presets ('Y-m-d', 'Y-m' or 'Y') to ensure that dates can be sorted lexographically - Require the filenameFormat to contain the (sub)string `{date}` so we will actually create new files instead of the same file over and over again.
* | Add deprecation errors on RotatingFileHandler (#774)Remon van de Kamp2016-05-201-10/+122
|/ | | | | | * Add deprecation errors when attempting to set dateFormats of fileFormats that break the possibility of rotating easily in RotatingFileHandler. Version 2.x of Monolog will throw `\InvalidArgumentException`s in these cases.
* CS fixesJordi Boggiano2012-06-141-1/+0
|
* Added @covers annotations to everythingJordi Boggiano2011-06-291-0/+3
|
* Made the write method protectedChristophe Coevoet2011-04-061-4/+8
| | | | Tests are not a good reason to make it public.
* Merge similar tests togetherJordi Boggiano2011-04-051-24/+20
|
* Added tests for RotatingFileHandlerJordi Boggiano2011-04-051-0/+97