PhpSpreadsheet/tests/PhpSpreadsheetTests
oleibman 1c6dd8923e Handle Error in Formula Processing Better for Xls (#1267)
* Handle Error in Formula Processing Better for Xls

When there is an error writing a formula to an Xls file,
which seems to happen when a defined name is part of a formula,
the cell is currently left blank. A better result would be to
write the calculated value of the formula.

* Making Changes Suggested in Review

Per comment from Mark Baker:
   1. Made return codes from writeFormula into constants.
   2. Skipped redundant call to getCellValue when possible.
   3. Added support for bool type, adding additional tests
      for bool and string.
Per comment from PowerKiki:
   1. Used standardized convention for assigning file name in test.
      Since before this change, save would throw Exception, I kept
      the unlink for the file in tearDown.
2020-01-04 18:34:21 +01:00
..
Calculation Do not confuse defined names and cell refs 2019-11-30 16:10:43 +01:00
Cell Addition cell datatype tests (#1303) 2020-01-03 23:44:38 +01:00
Chart Custom color for pie and donut charts 2018-12-10 18:43:55 +11:00
Collection - Create unit test (#944) 2019-04-15 21:39:11 +02:00
Custom Test fixes for PHP 7.4 stricter behaviour 2019-09-20 16:22:08 -07:00
Functional CS Fixes (#962) 2019-04-15 22:49:51 +02:00
Helper Upgrade to phpunit 7.5 2019-07-24 23:45:43 -07:00
Reader Handle ConditionalStyle NumberFormat When Reading Xlsx File (#1296) 2020-01-04 00:10:41 +01:00
Shared Upgrade to phpunit 7.5 2019-07-24 23:45:43 -07:00
Style Chained operations on cell ranges involving borders are now possible 2018-07-15 12:19:54 +09:00
Worksheet Add test for PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension 2019-11-17 21:19:50 +01:00
Writer Handle Error in Formula Processing Better for Xls (#1267) 2020-01-04 18:34:21 +01:00
IOFactoryTest.php Add test for IOFactory::load 2019-11-17 18:39:38 +01:00
ReferenceHelperTest.php Add ReferenceHelper::cellSort and ReferenceHelper::cellReverseSort tests 2019-11-17 20:50:55 +01:00
SettingsTest.php Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#271) 2017-11-09 00:48:01 +09:00
SpreadsheetTest.php Cover getSheetByName() with tests for name with quote and spaces 2019-07-27 22:46:41 -07:00