From 07e36f5cad5374d93623e48608c34eaf07aa9b73 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Mon, 14 Apr 2008 16:10:58 +0000 Subject: [PATCH] increase code coverage further --- ext/phar/tests/dir.phpt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/phar/tests/dir.phpt b/ext/phar/tests/dir.phpt index 0f0e03f0f2..d74fcd50a3 100644 --- a/ext/phar/tests/dir.phpt +++ b/ext/phar/tests/dir.phpt @@ -42,6 +42,10 @@ mkdir('phar://' . dirname(__FILE__) . '/oops.phar/fails'); mkdir('phar://'); rmdir('phar://'); +rmdir('phar://' . dirname(__FILE__) . '/unknown.phar/hi'); +ini_set('phar.readonly', 1); +rmdir($pname . '/another/dir'); +ini_set('phar.readonly', 0); ?> ===DONE=== --CLEAN-- @@ -72,4 +76,8 @@ Warning: mkdir(): internal corruption of phar "%soops.phar" (truncated manifest Warning: mkdir(): phar error: cannot create directory "phar://", no phar archive specified in %sdir.php on line %d Warning: rmdir(): phar error: cannot remove directory "phar://", no phar archive specified in %sdir.php on line %d + +Warning: rmdir(): phar error: cannot remove directory "hi" in phar "%sunknown.phar", directory does not exist in %sdir.php on line %d + +Warning: rmdir(): phar error: cannot rmdir directory "phar://%sdir.phar.php/another/dir", write operations disabled in %sdir.php on line %d ===DONE=== \ No newline at end of file -- 2.40.0