#!/www/server/bin/php array("a\tb", "1\t2"))); is(json_encode($pipe->csv()), '[{"a":"1","b":"2"}]', "it_pipe::csv()"); $pipe = new it_pipe(array('data' => array("a;b", "1;2"))); is(json_encode($pipe->csv()), '[{"a":"1","b":"2"}]', "it_pipe::csv()"); $pipe = new it_pipe(array('data' => array("a,b", "1,2"))); is(json_encode($pipe->csv()), '[{"a":"1","b":"2"}]', "it_pipe::csv()"); $pipe = new it_pipe(array('data' => array("a\tb", "1\t2"))); is(json_encode($pipe->csv("c,d")), '[{"c":"1","d":"2"}]', "it_pipe::csv()"); $pipe = new it_pipe(array('data' => array("\t", "1\t2"))); is(json_encode($pipe->csv()), '[{"field0":"1","field1":"2"}]', "it_pipe::csv()");