From: Greg Beaver Date: Mon, 21 Apr 2008 16:56:45 +0000 (+0000) Subject: increase code coverage X-Git-Tag: RELEASE_2_0_0b1~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ee359785165c4b0fc3a6166552240ae9a8f1e18;p=php increase code coverage --- diff --git a/ext/phar/tests/zip/odt.phpt b/ext/phar/tests/zip/odt.phpt index 9901c21cb7..28187f68b7 100644 --- a/ext/phar/tests/zip/odt.phpt +++ b/ext/phar/tests/zip/odt.phpt @@ -13,6 +13,12 @@ foreach (new RecursiveIteratorIterator($a, RecursiveIteratorIterator::LEAVES_ONL echo $b->getPathName() . "\n"; } } +// this next line is for increased code coverage +try { + $b = new Phar(dirname(__FILE__) . '/files/odt.odt'); +} catch (Exception $e) { + echo $e->getMessage() . "\n"; +} ?> ===DONE=== --EXPECTF-- @@ -24,4 +30,5 @@ phar://%sodt.odt%cmeta.xml phar://%sodt.odt%cmimetype phar://%sodt.odt%csettings.xml phar://%sodt.odt%cstyles.xml +Cannot create phar '%sodt.odt', file extension (or combination) not recognised ===DONE===