1--TEST--
2SPL: SplFileObject::getFlags basic
3--CREDITS--
4Ricardo Oedietram <ricardo@odracir.nl>
5Erwin Poeze <erwin.poeze@gmail.com>
6#PFZ June PHP TestFest 2012
7--FILE--
8<?php
9
10file_put_contents('SplFileObject_getflags_basic.csv', 'eerste;tweede;derde');
11
12$fo = new SplFileObject('SplFileObject_getflags_basic.csv');
13
14$fo->setFlags(SplFileObject::DROP_NEW_LINE);
15var_dump($fo->getFlags());
16?>
17--CLEAN--
18<?php
19unlink('SplFileObject_getflags_basic.csv');
20?>
21--EXPECT--
22int(1)
23