mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 04:52:42 +00:00
fixes FileLog doesn't delete on rotation if rotate
= 0
This commit is contained in:
parent
83d340a3af
commit
8060f1b4be
2 changed files with 10 additions and 5 deletions
|
@ -142,6 +142,7 @@ class FileLogTest extends CakeTestCase {
|
|||
'size' => 35,
|
||||
'rotate' => 0
|
||||
));
|
||||
file_put_contents($path . 'debug.log.0000000000', "The oldest log file with over 35 bytes.\n");
|
||||
$log->write('debug', 'Test debug');
|
||||
$this->assertTrue(file_exists($path . 'debug.log'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue