Annotation of embedaddon/php/ext/spl/tests/SplFileObject_fwrite_error_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SplFileObject::fpassthru function - parameters test
! 3: --FILE--
! 4: <?php
! 5: $obj = New SplFileObject(dirname(__FILE__).'/SplFileObject_testinput.csv');
! 6: $obj->fwrite();
! 7: $obj->fwrite('6,6,6',25,null);
! 8: ?>
! 9: --EXPECTF--
! 10: Warning: SplFileObject::fwrite() expects at least 1 parameter, 0 given in %s
! 11:
! 12: Warning: SplFileObject::fwrite() expects at most 2 parameters, 3 given in %s
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>