Test for #48476
| From: | Olivier Doucet | Date: | Mon, 08 Jun 2009 09:37:09 +0000 |
| Subject: | Test for #48476 | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-65073@lists.php.net to get a copy of this message | ||
Hi,
here is a phptest for bug 48476.
Feel free to give any feedbacks on bugtests writing :)
--TEST--
Bug #48476 (cloning extended DateTime class crashed PHP)
--FILE--
<?php
class MyDateTime extends DateTime {
public function __construct() { }
}
var_dump(clone new MyDateTime);
--EXPECT--
object(MyDateTime)#2 (0) {
}
--XFAIL--
Bug report still open at the time of writing.