You are here

public function PHPExcelTest::setUp in PHPExcel 8.3

Same name and namespace in other branches
  1. 6.2 tests/phpexcel.test \PHPExcelTest::setUp()
  2. 6 tests/phpexcel.test \PHPExcelTest::setUp()
  3. 7.3 tests/phpexcel.test \PHPExcelTest::setUp()
  4. 7.2 tests/phpexcel.test \PHPExcelTest::setUp()

File

tests/phpexcel.test, line 26
Defines the test case for phpexcel

Class

PHPExcelTest
@file Defines the test case for phpexcel

Code

public function setUp() {
  parent::setUp('libraries', 'phpexcel');
  $this->directory = variable_get('file_' . file_default_scheme() . '_path', conf_path() . '/files');

  // Make sure the directory is writable
  $this
    ->assertTrue(is_writable($this->directory), t("The !dir directory exists and is writable.", array(
    '!dir' => $this->directory,
  )));
  require_once dirname(__FILE__) . '/../phpexcel.inc';
}