From: Hannes Magnusson Date: Mon, 29 Aug 2011 14:17:41 +0000 (+0000) Subject: The Phar class extends RecursiveDirectoryIterator, which has changed the way it ensur... X-Git-Tag: php-5.3.9RC1~333 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abbf8be0d6501f6c7bb32e6544c0a60749cae637;p=php The Phar class extends RecursiveDirectoryIterator, which has changed the way it ensures its ctor is called --- diff --git a/ext/phar/tests/phar_oo_001.phpt b/ext/phar/tests/phar_oo_001.phpt index f211394e56..5a9e560e72 100755 --- a/ext/phar/tests/phar_oo_001.phpt +++ b/ext/phar/tests/phar_oo_001.phpt @@ -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===