xref: /PHP-5.6/Zend/tests/errmsg_014.phpt (revision 0f0fe9c9)
1--TEST--
2errmsg: cannot call __clone() method on objects
3--FILE--
4<?php
5
6class test {
7	function __clone() {
8	}
9}
10
11$t = new test;
12$t->__clone();
13
14echo "Done\n";
15?>
16--EXPECTF--
17Fatal error: Cannot call __clone() method on objects - use 'clone $obj' instead in %s on line %d
18