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 | 5519b2ebe1802045196e92b73e6cecaca5004ddb (patch) | |
tree | 97f253f000f8910ca14080013f229d71d3cafe99 | |
parent | 4297b67aee0e837b906e5cddf6754958e02dd43c (diff) | |
download | php-git-5519b2ebe1802045196e92b73e6cecaca5004ddb.tar.gz |
The Phar class extends RecursiveDirectoryIterator, which has changed the way it ensures its ctor is called
-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=== |