assertEquals($expectedResult, $result); } public function testSetUseUploadTempDirectory() { $useUploadTempDirectoryValues = array( TRUE, FALSE, ); foreach($useUploadTempDirectoryValues as $useUploadTempDirectoryValue) { call_user_func(array('PHPExcel_Shared_File','setUseUploadTempDirectory'),$useUploadTempDirectoryValue); $result = call_user_func(array('PHPExcel_Shared_File','getUseUploadTempDirectory')); $this->assertEquals($useUploadTempDirectoryValue, $result); } } }