I can see three options here. First two you already figured out yourself ;)
You could either create and remove "dummy" files or inject a mock of collaborator for filesystem manipulation (have a look at the Symfony's Filesystem component).
Third option would be to use a stream wrapper for virtual filesystem, like vfsStream. Here's a nice explanation of how it works: https://github.com/mikey179/vfsStream/wiki/Example