xref: /PHP-7.4/ext/spl/tests/bug78976.phpt (revision 4cd6d384)
1--TEST--
2Bug #78976 (SplFileObject::fputcsv returns -1 on failure)
3--FILE--
4<?php
5$file = new SplFileObject('php://memory', 'r');
6var_dump($file->fputcsv(['foo', 'bar']));
7?>
8--EXPECT--
9bool(false)
10