Annotation of embedaddon/php/ext/spl/tests/SplFileObject_getflags_error001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: SplFileObject::getFlags error 001
3: --CREDITS--
4: Ricardo Oedietram <ricardo@odracir.nl>
5: Erwin Poeze <erwin.poeze@gmail.com>
6: #PFZ June PHP TestFest 2012
7: --FILE--
8: <?php
9:
10: file_put_contents('testdata.csv', 'eerste;tweede;derde');
11:
12:
13: $fo = new SplFileObject('testdata.csv');
14: $fo->setFlags(SplFileObject::READ_CSV);
15:
16: $fo->setFlags(SplFileObject::DROP_NEW_LINE);
17:
18: var_dump($fo->getFlags());
19:
20: ?>
21: --CLEAN--
22: <?php
23: unlink('testdata.csv');
24: ?>
25: --EXPECT--
26: int(1)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>