Re: Test for #48476
| From: | Christopher Jones | Date: | Tue, 09 Jun 2009 18:14:32 +0000 |
| Subject: | Re: Test for #48476 | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65079@lists.php.net to get a copy of this message | ||
Olivier Doucet wrote:
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.
Hi Oliver,
Thanks for the test! It looks simple enough. You could give your
self a credit if you want. Also I like the ===DONE=== section. See
http://qa.php.net/write-test.php
Did you get a chance to test with PHP 6? That would make it a lot
quicker for someone to merge the test, since we need to merge it in
all branches at the same time.
Chris
--
Email: christopher.jones@oracle.com
Twitter: http://twitter.com/ghrd