Annotation of embedaddon/php/ext/spl/tests/SplFileObject_getflags_basic.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: SPL: SplFileObject::getFlags basic
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:
1.1.1.2 ! misho 10: file_put_contents('SplFileObject_getflags_basic.csv', 'eerste;tweede;derde');
1.1 misho 11:
1.1.1.2 ! misho 12: $fo = new SplFileObject('SplFileObject_getflags_basic.csv');
1.1 misho 13:
14: $fo->setFlags(SplFileObject::DROP_NEW_LINE);
15: var_dump($fo->getFlags());
16: ?>
17: --CLEAN--
18: <?php
1.1.1.2 ! misho 19: unlink('SplFileObject_getflags_basic.csv');
1.1 misho 20: ?>
21: --EXPECT--
22: int(1)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>