diff options
author | Hannes Magnusson <bjori@php.net> | 2011-08-29 14:17:41 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2011-08-29 14:17:41 +0000 |
commit | abbf8be0d6501f6c7bb32e6544c0a60749cae637 (patch) | |
tree | 8b9ece370d5f5c64c6481a9ac2ec0d29fd3e27be /ext/phar | |
parent | 5250f01d1593b919c349abda65425e4232f85816 (diff) | |
download | php-git-abbf8be0d6501f6c7bb32e6544c0a60749cae637.tar.gz |
The Phar class extends RecursiveDirectoryIterator, which has changed the way it ensures its ctor is called
Diffstat (limited to 'ext/phar')
-rwxr-xr-x | ext/phar/tests/phar_oo_001.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
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=== |