You are here

public function AutofilterColumnTest::testGetAttribute 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::testGetAttribute()

File

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

Class

AutofilterColumnTest

Code

public function testGetAttribute() {
  $attributeSet = array(
    'val' => 100,
    'maxVal' => 200,
  );
  $this->_testAutoFilterColumnObject
    ->setAttributes($attributeSet);
  foreach ($attributeSet as $attributeName => $attributeValue) {
    $result = $this->_testAutoFilterColumnObject
      ->getAttribute($attributeName);
    $this
      ->assertEquals($attributeValue, $result);
  }
  $result = $this->_testAutoFilterColumnObject
    ->getAttribute('nonExistentAttribute');
  $this
    ->assertNull($result);
}