1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-12 16:14:08 +02:00

11 Commits

Author SHA1 Message Date
Jordi Boggiano
5de973cd33 More 5.3 fixes 2018-06-09 10:23:30 +02:00
Jordi Boggiano
06f7bfb0ee Fix 5.3 build 2018-06-08 23:41:14 +02:00
Alban Kora
5f8783686e Fixing file rotation when similar files are present 2018-06-08 22:10:08 +02:00
Remon van de Kamp
deb0ea4ee7 Use first day/first month for date calculations in RotatingFileHandlerTest (#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.
2017-06-19 01:33:57 +02:00
Jordi Boggiano
ced9284123 Fix tests 2016-07-29 04:51:33 +02:00
Remon van de Kamp
83a24937ba Add deprecation errors on RotatingFileHandler (#774)
* 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.
2016-05-20 19:13:19 +01:00
Jordi Boggiano
da33c84d07 CS fixes 2012-06-14 15:47:01 +02:00
Jordi Boggiano
8108272c6c Added @covers annotations to everything 2011-06-29 20:23:08 +02:00
Christophe Coevoet
3cb3dbdc8f Made the write method protected
Tests are not a good reason to make it public.
2011-04-06 13:22:06 +02:00
Jordi Boggiano
d0fce88274 Merge similar tests together 2011-04-05 23:36:18 +02:00
Jordi Boggiano
df1679967c Added tests for RotatingFileHandler 2011-04-05 23:19:59 +02:00