You are here

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

File

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

Class

AutofilterColumnTest

Code

public function testSetAttribute() {
  $attributeSet = array(
    'val' => 100,
    'maxVal' => 200,
  );
  foreach ($attributeSet as $attributeName => $attributeValue) {

    //	Setters return the instance to implement the fluent interface
    $result = $this->_testAutoFilterColumnObject
      ->setAttribute($attributeName, $attributeValue);
    $this
      ->assertInstanceOf('PHPExcel_Worksheet_AutoFilter_Column', $result);
  }
}