1--TEST--
2SPL: SplFileObject::setCsvControl error 003
3--CREDITS--
4Erwin Poeze <erwin.poeze at gmail.com>
5--INI--
6include_path=.
7--FILE--
8<?php
9file_put_contents('csv_control_data_error003.csv',
10<<<CDATA
11'groene appelen'|10
12'gele bananen'|20
13'rode kersen'|30
14CDATA
15);
16$s = new SplFileObject('csv_control_data_error003.csv');
17$s->setFlags(SplFileObject::READ_CSV);
18try {
19    $s->setCsvControl('|', '\'', 'three');
20} catch (ValueError $e) {
21    echo $e->getMessage(), "\n";
22}
23?>
24--CLEAN--
25<?php
26unlink('csv_control_data_error003.csv');
27?>
28--EXPECT--
29SplFileObject::setCsvControl(): Argument #3 ($escape) must be empty or a single character
30