]> granicus.if.org Git - php/commitdiff
- Fix test
authorMarcus Boerger <helly@php.net>
Tue, 29 May 2007 09:13:57 +0000 (09:13 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 29 May 2007 09:13:57 +0000 (09:13 +0000)
ext/phar/tests/002.phpt

index 2492473f1dcd04a2a7dc8bfd244a30f72ba77cff..5a7b4289ea469067809d56d4c92b98ced20c9646 100644 (file)
@@ -5,20 +5,13 @@ Phar::mapPhar truncated manifest/improper params
 --FILE--
 <?php
 try {
-Phar::mapPhar(5, 5);
-Phar::mapPhar(5, 'hio');
 Phar::mapPhar(5, 'hio', 'hi');
 
 Phar::mapPhar();
-Phar::mapPhar(5);
 } catch (Exception $e) {
        echo $e->getMessage();
 }
 __HALT_COMPILER(); ?>
 --EXPECTF--
-Warning: Phar::mapPhar() expects at most 1 parameter, 2 given in %s002.php on line %d
-
-Warning: Phar::mapPhar() expects at most 1 parameter, 2 given in %s002.php on line %d
-
-Warning: Phar::mapPhar() expects at most 1 parameter, 3 given in %s002.php on line %d
+Warning: Phar::mapPhar() expects at most 2 parameters, 3 given in %s002.php on line %d
 internal corruption of phar "%s002.php" (truncated manifest at manifest length)
\ No newline at end of file