public function testReadNewFile() { $f = new File(__DIR__ . '/../tmp/file.txt'); $f->write('123456'); $this->assertEquals('345', $f->read(2, 3)); }