You are here

public function FontTest::testSetAutoSizeMethod in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/FontTest.php \FontTest::testSetAutoSizeMethod()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/FontTest.php, line 25

Class

FontTest

Code

public function testSetAutoSizeMethod() {
  $autosizeMethodValues = array(
    PHPExcel_Shared_Font::AUTOSIZE_METHOD_EXACT,
    PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX,
  );
  foreach ($autosizeMethodValues as $autosizeMethodValue) {
    $result = call_user_func(array(
      'PHPExcel_Shared_Font',
      'setAutoSizeMethod',
    ), $autosizeMethodValue);
    $this
      ->assertTrue($result);
  }
}