public function testAllFilesFindsFiles() { $this->root->addChild(new vfsStreamDirectory('languages')); $dir = $this->root->getChild('languages'); $file1 = vfsStream::newFile('php.txt')->withContent('PHP')->at($dir); $file2 = vfsStream::newFile('c.txt')->withContent('C')->at($dir); $allFiles = $this->files->allFiles($dir->url()); $this->assertContains($file1->getName(), $allFiles[0]); $this->assertContains($file2->getName(), $allFiles[1]); }