Tests for TempFSFile
authorAryeh Gregor <ayg@aryeh.name>
Tue, 20 Aug 2019 08:22:31 +0000 (11:22 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Tue, 20 Aug 2019 08:25:02 +0000 (11:25 +0300)
commitd7d5fb81b5e8186b9c6c9c4850e41e7c59434a42
tree49b98dac4681f2c6c74df215e80d09a305a21ad7
parentc4f0a993baab3ab2f0a8ce00d0086ba3233eb8eb
Tests for TempFSFile

These are in preparation for making a TempFSFileFactory service, thus
the odd break-up into two files. I split it into a separate commit so
that we could verify that the same tests pass before and after the
conversion to service.

Tests cover everything except getUsableTempDirectory() (which I don't
see how to test), and register_shutdown_function()-related stuff (which
seems actually impossible to test without starting a new PHP process).

Change-Id: If61b7ea3e332adc2bceefc8e6879a9e9443c99dd
tests/common/TestsAutoLoader.php
tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php [new file with mode: 0644]
tests/phpunit/unit/includes/libs/filebackend/fsfile/TempFSFileTestTrait.php [new file with mode: 0644]