Gianni Genovesi
7b1957f996
fix: issue #1476 crash with numeric string value terminating with new line ( #1481 )
...
* fix: issue #1476 crash with numeric string value terminating with new line
* test: provided tests for issue #1476
2020-05-23 12:49:54 +02:00
Adrien Crivelli
fcd9f10663
Update PHP-CS-Fixer rules
2020-05-18 13:49:57 +09:00
Adrien Crivelli
e868e58d20
Allow to run an entire folder of tests
...
We now can do something like:
```sh
./vendor/bin/phpunit tests/PhpSpreadsheetTests/Reader/
```
2020-05-17 18:35:55 +09:00
Mark Baker
ed78a02119
Addition cell datatype tests ( #1303 )
...
* Additional cell datatype unit tests
* Codestyle appeasement
2020-01-03 23:44:38 +01:00
Mark Baker
e19228ecb0
Additional cell datatype unit tests ( #1301 )
2020-01-03 23:29:53 +01:00
Rinat Gumirov
82b3a36ab7
Style fix
2019-11-17 20:48:34 +01:00
Rinat Gumirov
73c79a90a8
Add PhpOffice\PhpSpreadsheet\Cell\DataType::checkString unit test
2019-11-17 20:48:34 +01:00
Adrien Crivelli
5441b2fa73
Keep big integer as integer instead of lossely casting to float
...
Closes #874
Fixes #1135
2019-11-10 22:51:53 +01:00
Adrien Crivelli
fa54ca79a3
Migrate away from deprecated PHPUnit asserts
2019-07-25 10:15:53 -07:00
Adrien Crivelli
454d942c13
Drop PHP 5.6 and 7.0
...
This is according to our formal, published, policy to only support
eol PHP after 6 months.
See https://phpspreadsheet.readthedocs.io/en/latest/#php-version-support
2019-07-24 23:12:45 -07:00
Milan Davídek
3be06a5e87
Support overriding `DefaultValueBinder::dataTypeForValue()`
...
This allow to avoid overriding `DefaultValueBinder::bindValue()`
Fixes #735
2018-11-03 17:25:43 +11:00
Robin D'Arcy
ed2185417e
Throw exception for invalid range to prevent infinite loop
...
Fixes #519
Closes #521
2018-06-10 13:34:10 +09:00
Adrien Crivelli
c96e2dae02
Update to PHP-CS-Fixer 2.10
2018-01-28 15:59:38 +09:00
MaxTingle
49775bd972
Fix cell ranges causing coordinate merge error
...
Fixes #319
Closes #328
2018-01-22 12:26:37 +09:00
Adrien Crivelli
4dd486fb94
Clean up very obsolete links
2017-12-30 19:07:22 +09:00
Adrien Crivelli
fb5f8d4763
Support DateTimeImmutable as cell value
2017-12-23 21:50:07 +09:00
Adrien Crivelli
eb58563b4b
Written DataValidation was corrupted
...
Fixes #290
2017-12-16 17:15:13 +09:00
Gabriel Caruso
dfcab0c13f
Use assertInstanceOf ( #286 )
2017-12-06 18:46:31 +09:00
Adrien Crivelli
8d76020590
Consistent `stringFromColumnIndex()` and `columnIndexFromString()`
...
Column indexes are always based on 1 everywhere in PhpSpreadsheet.
This is consistent with rows starting at 1, as well as Excel
function `COLUMN()`. It should also make it easier to reason about
columns and rows and remove any doubts whether a specific method is
expecting 0 based or 1 based indexes.
Fixes #273
Fixes https://github.com/PHPOffice/PHPExcel/issues/307
Fixes https://github.com/PHPOffice/PHPExcel/issues/476
2017-11-26 15:29:08 +09:00
Adrien Crivelli
e0150fd43e
Extract coordinate methods to `Coordinate` class
2017-11-18 23:52:38 +09:00
Gabriel Caruso
aed27a0bed
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase ( #271 )
...
Use the `PHPUnit\Framework\TestCase` notation instead of `PHPUnit_Framework_TestCase` while extending our TestCases. This will help us migrate to PHPUnit 6, that [no longer support snake case class names](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-6.0.md#changed-1 ).
2017-11-09 00:48:01 +09:00
Maxim Bulygin
6561494e32
Add possibility to check validity of a cell value, based on data validation rules
...
`$cell->hasValidValue()` returns true if the cell has a value which conform to the
rules defined in `$cell->getDataValidation()`.
Closes #257
2017-10-31 14:07:24 +09:00
Adrien Crivelli
557e80dc03
Rename classes to keep them in their related namespaces
2017-10-29 17:39:42 +09:00
Adrien Crivelli
aef4d711f5
Use `self::assert*()` instead of `$this->assert*()`
...
Because even if it doesn't make a difference in practice, it is
technically more correct to call static methods statically. It
also better advertise that those methods can be used from any context.
2017-09-22 14:22:44 +09:00
Zharikov Viktor
07455d24f6
Make global usage of `use` instead of FQCN
...
Closes #78
Closes #147
2017-05-18 00:10:16 +02:00
Adrien Crivelli
fd9c925a7b
Refactor CachedObjectStorage to PSR-16
...
This drop a lot of non-core features code and delegate their maintainance
to third parties. Also it open the door to any missing implementation
out of the box, such as Redis for the moment.
Finally this consistently enforce a constraint where there can be one and
only one active cell at any point in time in code. This used to be true for
non-default implementation of cache, but it was not true for default
implementation where all cells were kept in-memory and thus were never
detached from their worksheet and thus were all kept functionnal at any
point in time.
This inconsistency of behavior between in-memory and off-memory could
lead to bugs when changing cache system if the end-user code was badly
written. Now end-user will never be able to write buggy code in the first
place, avoiding future headache when introducing caching.
Closes #3
2017-04-14 16:56:27 +09:00
Adrien Crivelli
9e835676a6
Update dev dependencies
2017-01-23 16:02:59 +09:00
Adrien Crivelli
909353ea39
Simplify bootstrap for tests
2017-01-23 15:05:41 +09:00
Adrien Crivelli
8dddf56c2e
Use proper syntax for variadic functions
...
This simplify code, increase readability and improve the function
signature for API users.
2017-01-23 15:01:20 +09:00
Adrien Crivelli
ec928d393f
Fix indentation as suggested by Scrunitizer
2017-01-05 12:26:20 +09:00
Adrien Crivelli
8c66afe39a
Upgrade to PHP-CS-Fixer 2.0
2016-12-22 23:46:26 +09:00
Adrien Crivelli
47cde0dadc
Introduce vendor prefix `PhpOffice` to namespace
2016-09-01 02:20:47 +09:00
Adrien Crivelli
f917b3b1f4
Avoid `call_user_func()` whenever possible
2016-08-26 15:39:29 +09:00
Adrien Crivelli
29bdbd4e0b
Respect PSR-0 with matching folder name and namespace `PhpSpreadsheetTests`
2016-08-25 13:53:15 +09:00