]> granicus.if.org Git - php/commitdiff
The Phar class extends RecursiveDirectoryIterator, which has changed the way it ensur...
authorHannes Magnusson <bjori@php.net>
Mon, 29 Aug 2011 14:17:41 +0000 (14:17 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 29 Aug 2011 14:17:41 +0000 (14:17 +0000)
ext/phar/tests/phar_oo_001.phpt

index f211394e56ee9743a5fc6605313181c304919107..5a9e560e724be8b31a04175bc5338b2b8d2ec7dc 100755 (executable)
@@ -30,14 +30,14 @@ try
        $phar = new MyPhar();
        var_dump($phar->getVersion());
 }
-catch (BadMethodCallException $e)
+catch (LogicException $e)
 {
        var_dump($e->getMessage());
 }
 try {
        $phar = new Phar('test.phar');
        $phar->__construct('oops');
-} catch (BadMethodCallException $e)
+} catch (LogicException $e)
 {
        var_dump($e->getMessage());
 }
@@ -52,6 +52,6 @@ __halt_compiler();
 --EXPECT--
 string(5) "1.0.0"
 int(5)
-string(50) "Cannot call method on an uninitialized Phar object"
+string(103) "In the constructor of MyPhar, parent::__construct() must be called and its exceptions cannot be cleared"
 string(29) "Cannot call constructor twice"
 ===DONE===