Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
File_CSV Test Case bug14118: Error with quoted fields and separators
3
--FILE--
4
<?php
5
// $Id: bug14118.phpt,v 1.3 2008/10/26 21:39:02 dufuz Exp $
6
require_once 'File/CSV.php';
7
 
8
$path = dirname(__FILE__) . '/bug14118.csv';
9
$config = File_CSV::discoverFormat($path);
10
echo 'fields count: ' . $config['fields'] . "\n";
11
while ($row = File_CSV::read($path, $config)) {
12
    print_r($row);
13
}
14
?>
15
--EXPECT--
16
fields count: 5
17
Array
18
(
19
    [0] => ENFB
20
    [1] => closed
21
    [2] => Oslo, Fornebu
22
    [3] => Airport
23
    [4] =>
24
)
25
Array
26
(
27
    [0] => ENFG
28
    [1] => medium_airport
29
    [2] => Leirin, Leirin
30
    [3] => Airport
31
    [4] =>
32
)