Neos\Flow\Tests\Unit\Log\Backend\FileBackendTest::openCreatesParentDirectoriesIfTheOptionSaysSo PHP Method

openCreatesParentDirectoriesIfTheOptionSaysSo() public method

    public function openCreatesParentDirectoriesIfTheOptionSaysSo()
    {
        $logFileUrl = vfsStream::url('testDirectory') . '/foo/test.log';
        $backend = new FileBackend(['logFileUrl' => $logFileUrl, 'createParentDirectories' => true]);
        $backend->open();
        $this->assertTrue(vfsStreamWrapper::getRoot()->hasChild('foo'));
    }