public function testReuseCurrentFile() { $log = __DIR__ . '/Fixtures/foo-' . date('Y-m-d') . '.rot'; file_put_contents($log, "foo"); $handler = new RotatingFileHandler(__DIR__ . '/Fixtures/foo.rot'); $handler->setFormatter($this->getIdentityFormatter()); $handler->handle($this->getRecord()); $this->assertEquals('footest', file_get_contents($log)); }