Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testCase() |
||
12 | { |
||
13 | $spreadsheet = new Spreadsheet(); |
||
14 | $borders = $spreadsheet->getActiveSheet()->getStyle('A1')->getBorders(); |
||
15 | $allBorders = $borders->getAllBorders(); |
||
16 | $bottom = $borders->getBottom(); |
||
17 | |||
18 | $actual = $bottom->getBorderStyle(); |
||
19 | $this->assertSame(Border::BORDER_NONE, $actual, 'should default to none'); |
||
20 | |||
21 | $allBorders->setBorderStyle(Border::BORDER_THIN); |
||
22 | |||
23 | $actual = $bottom->getBorderStyle(); |
||
24 | $this->assertSame(Border::BORDER_THIN, $actual, 'should have been set via allBorders'); |
||
25 | } |
||
26 | } |
||
27 |