Annotation of embedaddon/php/ext/spl/tests/SplFileObject_getflags_error002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: SplFileObject::getFlags error 001
3: --CREDITS--
4: Erwin Poeze <erwin.poeze@gmail.com>
5: --FILE--
6: <?php
7:
8: file_put_contents('testdata.csv', 'eerste;tweede;derde');
9:
10: $fo = new SplFileObject('testdata.csv');
11: $fo->setFlags(SplFileObject::READ_CSV);
12:
13: $fo->getFlags('fake');
14:
15: ?>
16: --CLEAN--
17: <?php
18: unlink('testdata.csv');
19: ?>
20: --EXPECTF--
21: Warning: SplFileObject::getFlags() expects exactly 0 parameters, 1 given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>