1--TEST--
2SPL: SplFileObject::getFlags error 001
3--CREDITS--
4Erwin Poeze <erwin.poeze@gmail.com>
5--FILE--
6<?php
7
8file_put_contents('SplFileObject_getflags_error002.csv', 'eerste;tweede;derde');
9
10$fo = new SplFileObject('SplFileObject_getflags_error002.csv');
11$fo->setFlags(SplFileObject::READ_CSV);
12
13$fo->getFlags('fake');
14
15?>
16--CLEAN--
17<?php
18unlink('SplFileObject_getflags_error002.csv');
19?>
20--EXPECTF--
21Warning: SplFileObject::getFlags() expects exactly 0 parameters, 1 given in %s on line %d
22