Task #41224

Temporary files should be deleted after test is done

Added by Nicole Cordes over 8 years ago. Updated over 5 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
TYPO3 Version:
PHP Version:
Sprint Focus:


In some tests (e.g. TYPO3\CMS\Core\Tests\Unit\Resource\Driver\LocalDriverTest) temp files are created. Those aren't deleted after test was done and mass up temp folder. Maybe we could add some routine to tearDown function to collect temporary files and delete them.


Updated by Oliver Hader over 8 years ago

  • Category set to Tests
  • Status changed from New to Accepted
  • Complexity set to medium

Updated by Mathias Schreiber over 6 years ago

  • Status changed from Accepted to Needs Feedback
  • Assignee set to Nicole Cordes

mind pushing a patch for this one? :)


Updated by Anja Leichsenring over 6 years ago

  • Sprint Focus set to On Location Sprint

Updated by Steffen Müller over 6 years ago

Afaik these temp files are a workaround for known issues in vfsStream.

We should evaluate if replacing temp files with vfsStream is a solution nowadays with PHP >=5.4

touch(), chown(), chgrp() and chmod() only work with PHP >= 5.4 because support of stream wrappers for those functions was first added with PHP 5.4, see issue #56. With PHP 5.3 an error with the message "Unable to create file vfs://... because No such file or directory" will be raised



Updated by Christian Kuhn over 6 years ago

  • Status changed from Needs Feedback to Closed

We had a clean up round in this area and at the moment all files created by unit tests are deleted afterwards so there are no leftovers (functionals are encapsulated within sub directories of typo3temp and those will stay).

Issue is rejected for now. Please create a fresh issue if you still find unit tests creating files and not removing them (easy to solve then with putting the stuff to $this->testFilesToDelete[] or similar, see UnitTestBase class.


Updated by Anja Leichsenring over 5 years ago

  • Sprint Focus deleted (On Location Sprint)

Also available in: Atom PDF