File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / intl / tests / msgfmt_clone_bad_obj.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:31:52 2013 UTC (11 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--TEST--
Cloning unconstructed MessageFormatter
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php

class A extends MessageFormatter {
	function __construct() {}
}

$a = new A;
try {
	$b = clone $a;
} catch (Exception $e) {
	var_dump($e->getMessage());
}

--EXPECTF--
string(%d) "Cannot clone unconstructed MessageFormatter"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>