You are here

public function FileTest::testSetUseUploadTempDirectory in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/FileTest.php \FileTest::testSetUseUploadTempDirectory()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/FileTest.php, line 25

Class

FileTest

Code

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);
  }
}