Susann Sgorzaly
|
5b1002a677
|
test correction
|
2018-02-26 10:06:59 +01:00 |
|
Susann Sgorzaly
|
4bbc928f09
|
added dependency for test
|
2018-02-26 10:00:52 +01:00 |
|
Susann Sgorzaly
|
951fc68886
|
new feature: auto detect if parsed file has heading
|
2018-02-26 09:46:44 +01:00 |
|
Christian Bläul
|
2ac9f450f1
|
Check if output contains HTML table cells
They should if the _books.csv file is found
|
2018-02-21 19:25:39 +01:00 |
|
Christian Bläul
|
3968659b9f
|
Make sure the code examples run without syntax or runtime errors.
|
2018-02-21 19:22:45 +01:00 |
|
Christian Bläul
|
d3a084d973
|
Added namespace support for further tests
|
2018-02-21 19:04:00 +01:00 |
|
Christian Bläul
|
2b95ec5aa1
|
Merge remote-tracking branch 'origin/Tests-for-sort-and-cond' into pull-test
# Conflicts:
# tests/Bootstrap.php
# tests/methods/ParseTest.php
# tests/properties/worthless_test.php
|
2018-02-21 18:41:45 +01:00 |
|
Christian Bläul
|
a60aae47a4
|
getDatatypes: Documented the need for PHP 5.5 or higher
|
2018-02-20 22:16:49 +01:00 |
|
Christian Bläul
|
ec7b1c1d55
|
PHPUnit: Better class names with modern naming scheme
|
2018-02-19 23:01:31 +01:00 |
|
Christian Bläul
|
ba9eae17d4
|
Bootstrap: Improved the conditions under which the test wrapper loads
|
2018-02-19 23:00:57 +01:00 |
|
Christian Bläul
|
913dc94e2c
|
Keep sorting keys compatible: Moved array_values call to PHPUnit.
This commit partially reverts adcd258ea2.
|
2018-02-19 22:08:59 +01:00 |
|
Christian Bläul
|
5ced1f4212
|
Added conditions to SortByTest because otherwise different PHP versions...
yielded different sort orders (that's sort of ok, as rating is ambiguous).
See https://travis-ci.org/parsecsv/parsecsv-for-php/jobs/336540118
|
2018-02-19 22:08:59 +01:00 |
|
Christian Bläul
|
ca84469950
|
Moved ConditionsTest to properties subfolder
|
2018-02-19 22:08:59 +01:00 |
|
Christian Bläul
|
75902f4a22
|
Added PHPUnit test for sorting; I could not get the rows in the right...
order without calling array_values - maybe this helps just PHPUnit. I
consider the risk of breaking library users' code unlikely.
|
2018-02-19 22:08:59 +01:00 |
|
Christian Bläul
|
7470d2b804
|
PHPUnit: Repaired file paths in autoQuotesDataProvider()
|
2018-02-19 22:08:59 +01:00 |
|
Christian Bläul
|
01f0891cfb
|
Test some conditions
|
2018-02-19 22:08:59 +01:00 |
|
Susann Sgorzaly
|
52a9b61b97
|
added DatatypeEnum tests; repaired the other test for local execution; small bug fixes
|
2018-02-19 21:36:31 +01:00 |
|
Christian Bläul
|
2b6e38734c
|
Merge remote-tracking branch 'origin/test-helper-for-itexia-master' into delete_this_branch
|
2018-02-18 19:41:38 +01:00 |
|
Christian Bläul
|
af7368378c
|
Changed tests to work now that we have a namespace
|
2018-02-18 19:40:21 +01:00 |
|
Christian Bläul
|
f2fb7c81bd
|
Absolute path in require do stop PhpStorm from nagging
(PhpStorm couldn't find the file)
|
2018-02-18 19:34:32 +01:00 |
|
Christian Bläul
|
92653c99c5
|
Force predictable working dir; create autoloader file if it doesn't exist
|
2018-02-18 19:32:39 +01:00 |
|
Christian Bläul
|
d4f9c9f020
|
Updated worthless_test to allow for more fields
|
2018-02-18 19:04:16 +01:00 |
|
Christian Bläul
|
2b17f01a0a
|
Removed additional column to make expected data fit to fixture
|
2018-02-18 19:03:23 +01:00 |
|
Christian Bläul
|
9551862a95
|
Allow current working dir to be different when running tests
...By using an absolute path
|
2018-02-18 19:02:37 +01:00 |
|
Susann Sgorzaly
|
17ac1dee1a
|
renamed namespace
|
2018-02-18 12:42:53 +01:00 |
|
Susann Sgorzaly
|
a7a0bc34a4
|
init introduce namespaces
|
2018-02-17 23:41:03 +01:00 |
|
Susann Sgorzaly
|
0e5afb209e
|
test for method getDatatypes added
|
2018-02-17 22:24:50 +01:00 |
|
Susann Sgorzaly
|
f8c68a6cd7
|
test improvements
|
2018-02-17 22:24:19 +01:00 |
|
Susann Sgorzaly
|
8ec87126dc
|
load files from extensions folder for tests; added new property in worthless_test
|
2018-02-14 12:12:53 +01:00 |
|
Christian Bläul
|
823f51c4f0
|
Added PHPUnit test to save without header
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
488b8f9d9b
|
Prevent an "Uninitialized string offset" error
Got triggered by testMissingEndingLineBreak.
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
b004911218
|
$this->auto_non_chars didn't work the way I would have expected:
The "-" was taken literally, and thus 0 was forbidden, but 1 was allowed.
Fixes #55.
Also see #61
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
47f691ce33
|
Added new testSingleColumnWithZeros.
Proves that issue #61 is indeed fixed.
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
f41a18b1c0
|
Added support for DOS double line endings
Fixed GitHub issue #75
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
003e98e8ff
|
Added SaveTest for coverage of writing files
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
63932f67a4
|
ParseTest: skip 'test_Piwik_data' in PHP 5.4
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
6432ba2ced
|
Added test for new field 'use_mb_convert_encoding'
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
8ae09c604b
|
Added support for mb_convert_encoding() instead of iconv()
See issue #109 at GitHub
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
5ea1d95f31
|
Also run test files ending with Test.php (capital letter)
|
2018-02-02 11:13:49 +01:00 |
|
Christian Bläul
|
38944ba221
|
Moved testAutoQuotes into existing test infrastructure
|
2018-01-21 21:47:28 +01:00 |
|
Alexander Vlasov
|
5a9a10aeed
|
Incorrect parsing with single quote during auto-detection delimiter.
|
2018-01-21 21:43:42 +01:00 |
|
Christian Bläul
|
e419663679
|
Improved name of files and classes within tests/methods folder
This follows PHP best practices for classes.
|
2018-01-21 01:15:56 +01:00 |
|
Christian Bläul
|
0ecaa80222
|
Added .editorconfig to tell others about spaces and tabs
Also:
- formated source code according to these rules;
- added spaces after commas in test code
See GitHub issue #101
|
2017-12-21 09:33:23 +01:00 |
|
Christian Bläul
|
4d011827f5
|
When we find a BOM, we know the input encoding. Let's use it!
Also: UTF tests not failing anymore because we are specifying
the output encoding now.
|
2017-12-21 09:33:23 +01:00 |
|
Christian Bläul
|
b082849b17
|
Added tests for files starting with a byte order mark (BOM)
|
2017-12-21 09:33:23 +01:00 |
|
Christian Bläul
|
7536d55f27
|
PHPUnit: Prevent 'Cannot redeclare class' error
The Travis environments of PHP 5.4 and 5.6 contained both the
namespaced and the global version of the TestCase class :-/
|
2017-12-06 02:25:54 +01:00 |
|
Christian Bläul
|
db1e242d07
|
PHPUnit: made compatible with v6, which is now namespaced.
|
2017-12-06 02:25:54 +01:00 |
|
Christian Bläul
|
fd5fb96bce
|
PHPUnit: simplified Bootstrap.php without changing functionality.
Notes:
- Using / on Windows is safe.
- __DIR__ is identical to dirname(__FILE)
|
2017-12-06 02:25:54 +01:00 |
|
Christian Bläul
|
4f08cbb561
|
PHPUnit: added test for UTF-8 and sep= row
Thanks to https://github.com/blaubaer! Some things in the CSV file
originate from java-kata-1 by Gregor Noczinski
|
2017-12-06 02:25:54 +01:00 |
|
Christian Bläul
|
0e50aec3b9
|
Renamed example file 'single_row', as it containes a single column.
|
2017-12-06 02:25:54 +01:00 |
|