php-pear-File-CSV/file-csv-test.patch

71 lines
2.0 KiB
Diff

--- File_CSV-1.0.0/tests/CSV/bug13332.phpt.orig 2012-01-29 20:07:14.000000000 +0100
+++ File_CSV-1.0.0/tests/CSV/bug13332.phpt 2012-01-29 20:07:19.000000000 +0100
@@ -19,34 +19,27 @@
$csv[] = $tmp;
}
-var_dump($csv);
+print_r($csv);
?>
--EXPECT--
-array(2) {
- [0]=>
- array(5) {
- [0]=>
- string(1) "1"
- [1]=>
- string(1) "2"
- [2]=>
- string(6) "Twenty"
- [3]=>
- string(35) "This is a test of a "quoted" value."
- [4]=>
- string(15) "There is no cow"
- }
- [1]=>
- array(5) {
- [0]=>
- string(1) "2"
- [1]=>
- string(1) "4"
- [2]=>
- string(5) "Forty"
- [3]=>
- string(37) "Another "quoted value", with a comma."
- [4]=>
- string(14) "There is a cow"
- }
-}
+Array
+(
+ [0] => Array
+ (
+ [0] => 1
+ [1] => 2
+ [2] => Twenty
+ [3] => This is a test of a "quoted" value.
+ [4] => There is no cow
+ )
+
+ [1] => Array
+ (
+ [0] => 2
+ [1] => 4
+ [2] => Forty
+ [3] => Another "quoted value", with a comma.
+ [4] => There is a cow
+ )
+
+)
--- package.xml.orig 2012-01-29 20:08:48.000000000 +0100
+++ package.xml 2012-01-29 20:09:06.000000000 +0100
@@ -127,7 +127,7 @@
<file md5sum="ecd67fa789344b9b1713fc8df8e8f2b0" name="tests/CSV/bug11526.csv" role="test" />
<file md5sum="64e72728d716678a8483b9183811b84d" name="tests/CSV/bug11526.phpt" role="test" />
<file md5sum="a23bce7b80e20b698e72ea9dae379f60" name="tests/CSV/bug13332.csv" role="test" />
- <file md5sum="2982eb5ecfa4ce5eef2457dcd4bfd598" name="tests/CSV/bug13332.phpt" role="test" />
+ <file name="tests/CSV/bug13332.phpt" role="test" />
<file md5sum="3e9295c06548af5707cb9ae99b38632f" name="tests/CSV/bug14030.phpt" role="test" />
<file md5sum="0c2da2f5898cbc86591862de8c349c90" name="tests/CSV/bug14118.csv" role="test" />
<file md5sum="9830a96ef8dbcb4dbf785fcb1e6b0be1" name="tests/CSV/bug14118.phpt" role="test" />