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