Annotation of embedaddon/php/ext/intl/tests/msgfmt_clone_bad_obj.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Cloning unconstructed MessageFormatter
! 3: --SKIPIF--
! 4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: class A extends MessageFormatter {
! 9: function __construct() {}
! 10: }
! 11:
! 12: $a = new A;
! 13: try {
! 14: $b = clone $a;
! 15: } catch (Exception $e) {
! 16: var_dump($e->getMessage());
! 17: }
! 18:
! 19: --EXPECTF--
! 20: string(%d) "Cannot clone unconstructed MessageFormatter"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>