@@ 27-38 (lines=12) @@ | ||
24 | /** |
|
25 | * @return \PhpOffice\PhpSpreadsheet\Spreadsheet |
|
26 | */ |
|
27 | protected function loadOOCalcTestFile() |
|
28 | { |
|
29 | if (!$this->spreadsheetOOCalcTest) { |
|
30 | $filename = __DIR__ . '/../../../samples/templates/OOCalcTest.ods'; |
|
31 | ||
32 | // Load into this instance |
|
33 | $reader = new Ods(); |
|
34 | $this->spreadsheetOOCalcTest = $reader->loadIntoExisting($filename, new \PhpOffice\PhpSpreadsheet\Spreadsheet()); |
|
35 | } |
|
36 | ||
37 | return $this->spreadsheetOOCalcTest; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @return \PhpOffice\PhpSpreadsheet\Spreadsheet |
|
@@ 43-54 (lines=12) @@ | ||
40 | /** |
|
41 | * @return \PhpOffice\PhpSpreadsheet\Spreadsheet |
|
42 | */ |
|
43 | protected function loadDataFile() |
|
44 | { |
|
45 | if (!$this->spreadsheetData) { |
|
46 | $filename = __DIR__ . '/../../data/Reader/Ods/data.ods'; |
|
47 | ||
48 | // Load into this instance |
|
49 | $reader = new Ods(); |
|
50 | $this->spreadsheetData = $reader->loadIntoExisting($filename, new \PhpOffice\PhpSpreadsheet\Spreadsheet()); |
|
51 | } |
|
52 | ||
53 | return $this->spreadsheetData; |
|
54 | } |
|
55 | ||
56 | public function testReadFileProperties() |
|
57 | { |