1--TEST--
2SplFileObject::fwrite function - writing with two parameters length < input string length
3--FILE--
4<?php
5$file = dirname(__FILE__).'/SplFileObject_fwrite_variation_001.txt';
6if(file_exists($file)) {
7	unlink($file);
8}
9$obj = New SplFileObject($file,'w');
10$obj->fwrite('test_write',4);
11var_dump(file_get_contents($file));
12?>
13--CLEAN--
14<?php
15$file = dirname(__FILE__).'/SplFileObject_fwrite_variation_001.txt';
16if(file_exists($file)) {
17	unlink($file);
18}
19?>
20--EXPECT--
21string(4) "test"
22