CHips L MINI SHELL

CHips L pro

Current Path : /proc/self/root/opt/cpanel/ea-php70/root/usr/share/tests/pear/File_CSV/tests/CSV/
Upload File :
Current File : //proc/self/root/opt/cpanel/ea-php70/root/usr/share/tests/pear/File_CSV/tests/CSV/028.phpt

--TEST--
File_CSV Test Case 028: Variant of 016 with out the sep after the double quotes
--FILE--
<?php
// $Id: 028.phpt,v 1.2 2007/05/11 21:49:01 cipri Exp $
/**
 * Test for:
 * - Like 016 but no sep after the double quote to proof that the sep is the problem
 * data gotten from http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
 */

require_once 'File/CSV.php';

$file = dirname(__FILE__) . '/028.csv';
$conf = File_CSV::discoverFormat($file);

print "Format:\n";
print_r($conf);
print "\n";

$data = array();
while ($res = File_CSV::read($file, $conf)) {
    $data[] = $res;
}

print "Data:\n";
print_r($data);
print "\n";
?>
--EXPECT--
Format:
Array
(
    [fields] => 6
    [sep] => ,
    [quote] => "
)

Data:
Array
(
    [0] => Array
        (
            [0] => Joan "the bone" Anne
            [1] => Jet
            [2] => 9th, at Terrace plc
            [3] => Desert City
            [4] => CO
            [5] => 00123
        )

)

Copyright 2K16 - 2K18 Indonesian Hacker Rulez