Commit Graph

3209 Commits

Author SHA1 Message Date
Adrien Crivelli c15ab515a7 Fix unit tests for testTIMEVALUEtoPHP 2016-10-02 09:37:52 +09:00
Adrien Crivelli 382d15a5c3 Rename DAYOFWEEK into WEEKDAY for consistency 2016-10-02 09:35:50 +09:00
Adrien Crivelli 4c41a6992a Fix unit tests for testTIMEtoPHP 2016-10-02 09:31:14 +09:00
Adrien Crivelli 60533a4f59 Fix unit tests for WEEKDAY()
In Excel the expected value was incorrect (but it would be different
for LibreOffice)
2016-10-02 09:28:00 +09:00
Adrien Crivelli 9629151e45 Rename WEEKOFYEAR into WEEKNUM for consistency 2016-10-01 22:44:33 +09:00
Adrien Crivelli 23fbc845dd Fix unit tests for WEEKNUM() 2016-10-01 22:33:12 +09:00
Adrien Crivelli 10da9b3620 Remove debug flag for PHPUnit 2016-09-09 18:20:21 +09:00
Adrien Crivelli 93ccf78dd5 Exclude more tests 2016-09-09 11:58:12 +09:00
Adrien Crivelli 8cf9111a5d Debug PHPUnit 2016-09-09 02:19:28 +09:00
Adrien Crivelli 2c96a06d6e Exclude long tests on Travis
Tests that run too long without output tends to break Travis builds.
This is typically the case when running code-coverage, so we need to
exclude a few test cases to ensure that the builds are stable.
2016-09-09 01:27:09 +09:00
Сергей Симонян 1a2a6816fb Fix undefined index exceprtion in readRow()
It's possible undefined index exception in $this->mapCellXfIndex.
2016-09-09 00:42:24 +09:00
Salomão Rodrigues 8fc7de7358 Update 08-Recipes.md
Remove wrong semicolon.
2016-09-09 00:36:33 +09:00
Adrien Crivelli cbeae09c21 Merge pull request #19 from Synchro/develop
Don't truncate to 64k in mb_str_replace
2016-09-08 00:30:10 +09:00
Marcus Bointon 39ea4eea98 Don't truncate to 64k in mb_str_replace 2016-09-05 23:23:49 +02:00
Adrien Crivelli 67918419c4 Fix code style 2016-09-01 12:50:10 +09:00
Adrien Crivelli 150ad19580 Ask Travis to wait longer for PHPUnit to finish 2016-09-01 11:20:22 +09:00
MarkBaker fb2edfdacf Merge branch 'develop' of https://github.com/PHPOffice/PhpSpreadsheet into develop
# Conflicts:
#	src/Autoloader.php
2016-08-31 21:58:08 +01:00
MarkBaker fae27a6d63 As iconv is now enabled by default in PHP, make it a requirement, and modify strig functions to use it where appropriate 2016-08-31 21:52:42 +01:00
Adrien Crivelli cfa1feffed Attempt to show samples output so Travis don't interrupt tests 2016-09-01 02:22:19 +09:00
Adrien Crivelli 47cde0dadc Introduce vendor prefix PhpOffice to namespace 2016-09-01 02:20:47 +09:00
Adrien Crivelli 2922a13764 Reorganize code samples
This introduce a helper class that should be used to log things,
avoiding a lot of boilerplate code.

Also all output are made in /tmp folder instead of beside the script
itself. This is because there is a high chance that the folder containing
the script is not writtable by webserver. So using the /tmp folder
makes it more likely to works in a variety of setup.
2016-09-01 01:17:13 +09:00
Adrien Crivelli 08525a10c1 Improve documentation wording 2016-08-31 21:12:04 +09:00
Adrien Crivelli c3bb4245b3 Register autoload as the first in the list
Yii framework v1.1 has it's own autoloader and its autoloader throws
an error, when it can't find class. When this library initializes, it
register its own autoloader, but places it at the end of autoload
queue. So when I use library with Yii 1.1, I just face an error:
`include(PHPExcel_Shared_String.php): failed to open stream: No such file or directory`
because Yii's autoloader runs first and tries to include class file
directly.

Registering our autoloader first avoid this.
2016-08-30 00:51:51 +09:00
Adrien Crivelli dbef91004d Migrate CHANGELOG to Markdown 2016-08-28 16:29:42 +09:00
Nikolay Ivanov 98e00e8843 iconv illegal character fix 2016-08-26 22:52:47 +09:00
Adrien Crivelli 67d5263004 Fix code style 2016-08-26 22:48:57 +09:00
Synchro c50814ac4e Remove unused local var, function returns void anyway 2016-08-26 22:44:55 +09:00
Synchro 30e0451bc3 Fix duplicate array keys in ptg indices
Reference: http://read.pudn.com/downloads173/sourcecode/delphi_control/805790/DevExpress/DevExpressComm/cxExcelConst.pas__.htm
2016-08-26 22:41:14 +09:00
Synchro 16a8162a14 Fix duplicate array key 2016-08-26 22:32:55 +09:00
Carlos Montiers 6acd403251 In memory gzip cache method use max compression 2016-08-26 22:09:46 +09:00
Carlos Montiers d8850176a1 php://temp maxmemory must be expressed in bytes 2016-08-26 22:07:49 +09:00
Adrien Crivelli f02c3320a2 Fix typo in README 2016-08-26 21:55:17 +09:00
Adrien Crivelli c319991c41 Delete Build system
It was obsolete and while we may re-introduce phar distribution in
the future, there are most likely easier way to that nowadays (via composer).
2016-08-26 18:11:03 +09:00
Adrien Crivelli 91417ad1c3 Delete debug and commented out code 2016-08-26 18:08:26 +09:00
Adrien Crivelli f917b3b1f4 Avoid call_user_func() whenever possible 2016-08-26 15:39:29 +09:00
Adrien Crivelli 04d6182a81 Remove unused variables 2016-08-26 15:05:40 +09:00
Adrien Crivelli b42bafcfe7 Apply Scrutinizer patches for doc comments 2016-08-26 13:40:01 +09:00
Adrien Crivelli cb0930c016 Apply Scrutinizer patches for indentation 2016-08-25 19:35:29 +09:00
Adrien Crivelli a85f1bdbed Apply Scrutinizer patches for spacing 2016-08-25 18:46:02 +09:00
Adrien Crivelli 20ccfa0d59 Fix unit tests for MDETERM() 2016-08-25 14:23:26 +09:00
Adrien Crivelli 29bdbd4e0b Respect PSR-0 with matching folder name and namespace PhpSpreadsheetTests 2016-08-25 13:53:15 +09:00
Adrien Crivelli b9ce2b901e Format date unit tests is now working 2016-08-25 13:47:27 +09:00
Adrien Crivelli 027792ed09 Fix wrong class names that were incorrectly migrated 2016-08-25 13:39:26 +09:00
Adrien Crivelli b0621f514f Avoid duplicated info in README 2016-08-25 11:55:49 +09:00
Adrien Crivelli 942ad72d2a Complete a few more namespace renaming 2016-08-25 11:43:27 +09:00
Adrien Crivelli ba70544846 Fix crash when reading HTML files 2016-08-25 11:14:03 +09:00
Adrien Crivelli 7a6c5b0d1b Fix code style 2016-08-25 11:13:49 +09:00
MarkBaker e0a9f9e1ec Merge branch 'feature/gh-7' into develop
# Conflicts:
#	src/PhpSpreadsheet/Shared/Date.php
2016-08-17 00:40:55 +01:00
MarkBaker f8c3363de3 Fix some Case-sensitivity problems 2016-08-17 00:36:24 +01:00
MarkBaker e87ec8505d gh-17 Update examples for namespace changes 2016-08-17 00:06:51 +01:00