Annotation of embedaddon/php/ext/spl/tests/SplFileObject_getflags_variation001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: SplFileObject::getFlags
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: $fo = new SplFileObject(__FILE__);
11:
12: $fo->setFlags(SplFileObject::DROP_NEW_LINE);
13: var_dump($fo->getFlags());
14:
15: $fo->setFlags(SplFileObject::READ_AHEAD);
16: var_dump($fo->getFlags());
17:
18: $fo->setFlags(SplFileObject::SKIP_EMPTY);
19: var_dump($fo->getFlags());
20:
21: $fo->setFlags(SplFileObject::READ_CSV);
22: var_dump($fo->getFlags());
23:
24: ?>
25: --EXPECT--
26: int(1)
27: int(2)
28: int(4)
29: int(8)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>