Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #10882 Tests fail
Submitted: 2007-04-29 10:32 UTC
From: cipri Assigned: dufuz
Status: Closed Package: File (version CVS)
PHP Version: 5.1.6 OS: Fedora Core 6
Roadmaps: 1.3.0a1    
Subscription  


 [2007-04-29 10:32 UTC] cipri (Cipriano Groenendal)
Description: ------------ Several tests fail because File_CSV can't handle multiline fields that well. Test script: --------------- pear run-tests -f File_CSV Expected result: ---------------- Running 36 tests PASS File_CSV Test Case 001: Fields count less than expected[001.phpt] PASS File_CSV Test Case 002: Fields count more than expected[002.phpt] PASS File_CSV Test Case 003: Windows EOL[003.phpt] PASS File_CSV Test Case 004: Unix EOL[004.phpt] FAIL File_CSV Test Case 005: Mac EOL[005.phpt] PASS File_CSV Test Case 006: One field quote autodiscovery[006.phpt] PASS File_CSV Test Case 007: Various different lines.[007.phpt] PASS File_CSV Test Case 008: Various different lines.[008.phpt] PASS File_CSV Test Case 009: Escaping of quotes within quotes.[009.phpt] PASS File_CSV Test Case 010: Empty first field and no quoting but some fields have extra spacing[010.phpt] PASS File_CSV Test Case 011: Only one field that's multiline with out a EOL and a potential quote inside quotes[011.phpt] PASS File_CSV Test Case 012: Read headers[012.phpt] PASS File_CSV Test Case 013: Reading ="" excel only fields[013.phpt] PASS File_CSV Test Case 014: Use 2 modes, first read the file then write to it.[014.phpt] PASS File_CSV Test Case 015: Various different lines.[015.phpt] PASS File_CSV Test Case 016: Various different lines.[016.phpt] PASS File_CSV Test Case 017: Various different lines.[017.phpt] PASS File_CSV Test Case 018: Various different lines.[018.phpt] PASS File_CSV Test Case 018: Various different lines.[019.phpt] PASS File_CSV Test Case 020: First field quoted = last field being excluded[020.phpt] PASS File_CSV Test Case 021: Tabs as separators and no quotes[021.phpt] PASS File_CSV Test Case 022: Only one field that's multiline with out a EOL[022.phpt] PASS File_CSV Test Case 023: Only one field that's multiline with out a EOL and a potential quote inside quotes[023.phpt] PASS File_CSV Test Case 024: Only one field that's multiline with out a EOL and spans couple of lines[024.phpt] PASS File_CSV Test Case 025: One row, four fields that are multiline with out a EOL and span couple of lines[025.phpt] PASS File_CSV Test Case 026: One row, four fields that are multiline with out a EOL and span couple of lines[026.phpt] PASS File_CSV Test Case 027: Records with spaces around them but no quotes[027.phpt] PASS File_CSV Test Case 028: Variant of 016 with out the sep after the double quotes[028.phpt] PASS File_CSV Test Case 029: Output double quotes.[029.phpt] PASS File_CSV Test Case 030: One row, four fields that are multiline with out a EOL and span couple of lines[030.phpt] PASS File_CSV Test Case 031: One row, four fields that are multiline with out a EOL and span couple of lines[031.phpt] PASS File_CSV Test Case 032: One row, four fields that are multiline with out a EOL and span couple of lines[032.phpt] PASS File_CSV Test Case bug4792_part1: All lines but last end with a whitespace Part 1[bug4792_part1.phpt] PASS File_CSV Test Case bug4792_part2: All lines but last end with a whitespace Part 2[bug4792_part2.phpt] PASS File_CSV Test Case bug5257: Delimiter problem if first field is empty[bug5257.phpt] PASS File_CSV Test Case bug5553: Write a file with delimiter inside quotes and don't pass the quote option[bug5553.phpt] wrote log to "/home/cipri/cvs/pear/File/tests/CSV/run-tests.log" TOTAL TIME: 00:23 35 PASSED TESTS 0 SKIPPED TESTS 1 FAILED TESTS: 005.phpt Actual result: -------------- # pear run-tests -q -p File Running 34 tests FAIL File_CSV Test Case 005: Mac EOL[005.phpt] FAIL File_CSV Test Case 020: First field quoted = last field being excluded[020.phpt] FAIL File_CSV Test Case 025: One row, four fields that are multiline with out a EOL and span couple of lines[025.phpt] FAIL File_CSV Test Case 032: One row, four fields that are multiline with out a EOL and span couple of lines[032.phpt] wrote log to "/usr/share/pear/tests/File/tests/CSV/run-tests.log" TOTAL TIME: 00:22 30 PASSED TESTS 0 SKIPPED TESTS 4 FAILED TESTS: /usr/share/pear/tests/File/tests/CSV/005.phpt /usr/share/pear/tests/File/tests/CSV/020.phpt /usr/share/pear/tests/File/tests/CSV/025.phpt /usr/share/pear/tests/File/tests/CSV/032.phpt

Comments

 [2007-05-11 21:15 UTC] dufuz (Helgi Þormar)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.