assertEquals($expectedResult, $result); } public function testSetUseUploadTempDirectory() { $useUploadTempDirectoryValues = [ true, false, ]; foreach ($useUploadTempDirectoryValues as $useUploadTempDirectoryValue) { File::setUseUploadTempDirectory($useUploadTempDirectoryValue); $result = File::getUseUploadTempDirectory(); $this->assertEquals($useUploadTempDirectoryValue, $result); } } }