You are here

public function AutofilterColumnTest::testGetAttributes in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/AutoFilter/ColumnTest.php \AutofilterColumnTest::testGetAttributes()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/AutoFilter/ColumnTest.php, line 125

Class

AutofilterColumnTest

Code

public function testGetAttributes() {
  $attributeSet = array(
    'val' => 100,
    'maxVal' => 200,
  );
  $this->_testAutoFilterColumnObject
    ->setAttributes($attributeSet);
  $result = $this->_testAutoFilterColumnObject
    ->getAttributes();
  $this
    ->assertTrue(is_array($result));
  $this
    ->assertEquals(count($attributeSet), count($result));
}