In tests/plugins_test.php we create real directories and files on disk (and add the created directories to .gitignore), whereas in tests/dependencies/updater_test.php we use a virtual filesystem to mock OS calls.
It would be preferable to be consistent here, and mock filesystem calls wherever we can.