fwrite('test'); } /** * @expectedException \Icinga\Exception\NotWritableError */ public function testWhetherTruncatingNonWritableFilesThrowsAnException() { $file = new File('/dev/null'); $file->ftruncate(0); } }