1--TEST--
2SPL: SplFileObject::getFlags error 001
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_error001.csv', 'eerste;tweede;derde');
11
12
13$fo = new SplFileObject('SplFileObject_getflags_error001.csv');
14$fo->setFlags(SplFileObject::READ_CSV);
15
16$fo->setFlags(SplFileObject::DROP_NEW_LINE);
17
18var_dump($fo->getFlags());
19
20?>
21--CLEAN--
22<?php
23unlink('SplFileObject_getflags_error001.csv');
24?>
25--EXPECT--
26int(1)
27