Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35110 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75049 invoked by uid 1010); 2 Feb 2008 19:57:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75034 invoked from network); 2 Feb 2008 19:57:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2008 19:57:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.178 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.178 mho-01-bos.mailhop.org Received: from [63.208.196.178] ([63.208.196.178:49849] helo=mho-01-bos.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/83-41947-A1BC4A74 for ; Sat, 02 Feb 2008 14:57:14 -0500 Received: from cs143125.pp.htv.fi ([213.243.143.125] helo=[127.0.0.1]) by mho-01-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JLOUB-0002oF-TM; Sat, 02 Feb 2008 19:57:12 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 213.243.143.125 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19fQM7Ctr8dZdUCEoGKCZ+VGT7SJG7Ay7c= Message-ID: <47A4CB18.9020206@sci.fi> Date: Sat, 02 Feb 2008 21:57:12 +0200 Reply-To: jani.taskinen@iki.fi User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: zoe CC: internals@lists.php.net References: <47A447F0.8040605@googlemail.com> In-Reply-To: <47A447F0.8040605@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Writing PHPT tests From: jani.taskinen@sci.fi (Jani Taskinen) You simply ignored my email or never got it? The correct place for such scripts is not in the "root" but in scripts/dev/ --Jani zoe kirjoitti: > Hi - for any of you that are writing PHPT tests for existing extensions > - I put a PHP script called generate_phpt.php into PHP 5.3 yesterday > which might help a little. > > It's quite a simple command line script (Raghu and I wrote it last > year), it works by looking at the {{{proto line for a function in PHP > source code and construct a test case frame from it. It can be used to > construct very simple tests cases - or to turn an existing PHP file into > PHPT format. It doesn't try and guess what the results of a test should > be :-). I will document it properly on qa.php.net later. In the meantime: > > php generate_phpt.php --help > > tells you what it's supposed to do. > > Zoe > > PS - It doesn't work for PHP6 right now because the {{{proto line is > different. >