diff --git a/tests/PhpSpreadsheetTests/Worksheet/ColumnDimensionTest.php b/tests/PhpSpreadsheetTests/Worksheet/ColumnDimensionTest.php new file mode 100644 index 00000000..1f31fdb9 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Worksheet/ColumnDimensionTest.php @@ -0,0 +1,45 @@ +getColumnIndex(); + self::assertEquals($expected, $result); + } + + public function testGetAndSetColumnIndex() + { + $expected = 'B'; + $columnDimension = new ColumnDimension(); + $columnDimension->setColumnIndex($expected); + $result = $columnDimension->getColumnIndex(); + self::assertSame($expected, $result); + } + + public function testGetAndSetWidth() + { + $expected = 1.2; + $columnDimension = new ColumnDimension(); + $columnDimension->setWidth($expected); + $result = $columnDimension->getWidth(); + self::assertSame($expected, $result); + } + + public function testGetAndSetAutoSize() + { + $expected = true; + $columnDimension = new ColumnDimension(); + $columnDimension->setAutoSize($expected); + $result = $columnDimension->getAutoSize(); + self::assertSame($expected, $result); + } +}