Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class AllSetupTeardown extends TestCase |
||
11 | { |
||
12 | protected $compatibilityMode; |
||
13 | |||
14 | protected $spreadsheet; |
||
15 | |||
16 | protected $sheet; |
||
17 | |||
18 | protected function setUp(): void |
||
19 | { |
||
20 | $this->compatibilityMode = Functions::getCompatibilityMode(); |
||
21 | $this->spreadsheet = new Spreadsheet(); |
||
22 | $this->sheet = $this->spreadsheet->getActiveSheet(); |
||
23 | } |
||
24 | |||
25 | protected function tearDown(): void |
||
26 | { |
||
27 | Functions::setCompatibilityMode($this->compatibilityMode); |
||
28 | $this->spreadsheet->disconnectWorksheets(); |
||
29 | $this->spreadsheet = null; |
||
30 | $this->sheet = null; |
||
31 | } |
||
32 | |||
33 | protected static function setOpenOffice(): void |
||
34 | { |
||
35 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
||
36 | } |
||
37 | |||
38 | protected static function setGnumeric(): void |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param mixed $expectedResult |
||
45 | */ |
||
46 | protected function mightHaveException($expectedResult): void |
||
50 | } |
||
51 | } |
||
53 |