--TEST-- Phar: tar with bad checksum --SKIPIF-- --FILE-- init(); $a->addFile('hithere', 'contents', null, 'checksum'); $a->close(); try { $p = new PharData($fname); } catch (Exception $e) { echo $e->getMessage() . "\n"; } ?> ===DONE=== --CLEAN-- --EXPECTF-- phar error: "%sbadchecksum.tar" is a corrupted tar file (checksum mismatch of file "hithere") ===DONE===