public function logFileIsRotatedIfMaximumSizeIsExceeded()
{
$this->markTestSkipped('vfsStream does not support touch() and rename(), see http://bugs.php.net/38025...');
$logFileUrl = vfsStream::url('testDirectory') . '/test.log';
file_put_contents($logFileUrl, 'twentybytesofcontent');
$backend = $this->getAccessibleMock(FileBackend::class, ['dummy'], [['logFileUrl' => $logFileUrl]]);
$backend->_set('maximumLogFileSize', 10);
$backend->setLogFilesToKeep(1);
$backend->open();
$this->assertFalse(vfsStreamWrapper::getRoot()->hasChild('test.log'));
$this->assertTrue(vfsStreamWrapper::getRoot()->hasChild('test.log.1'));
}