Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35126 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25741 invoked by uid 1010); 3 Feb 2008 09:18:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25726 invoked from network); 3 Feb 2008 09:18:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2008 09:18:53 -0000 Authentication-Results: pb1.pair.com header.from=zoe.slattery@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=zoe.slattery@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 66.249.92.171 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: zoe.slattery@googlemail.com X-Host-Fingerprint: 66.249.92.171 ug-out-1314.google.com Received: from [66.249.92.171] ([66.249.92.171:50280] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/D2-01807-BF685A74 for ; Sun, 03 Feb 2008 04:18:52 -0500 Received: by ug-out-1314.google.com with SMTP id u40so942860ugc.29 for ; Sun, 03 Feb 2008 01:18:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=3+gFEPlInmVA3BPVwIOh75vUjjFt9CNQ50XIxOHae6I=; b=kG7K2C880UYl/L6FipK+CBJCRPnyf/xpVBNRtys25qITEjG6OYiXHDhHp6HixqHj2JvUuOpdgaq4te8PPPFsIvyIuKuf20HzTp1hUYEK7fqoU+2xs8SW/YzwHpn2v4/gZl7BUFYeYCTa/nj9GfjlS4fhp9ll7/CFBuXGIeiX5Eo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=W3uvl+61fZagkbVzETqfOSJn0C6I+eZZv8/8/2RwgzrWEfDFvlZDhM/nvS5CEXt3Wyc82CSWqLDauo31PmA13ve/f5gw9+Cr3hKMWtNHYcVZbtFAfv1ki+33Tn+Fj2yhipzBoFCp5yQVM66kMKPOirLqC1jKY4uMuBlh6i+h8IU= Received: by 10.67.103.12 with SMTP id f12mr7720361ugm.58.1202030329270; Sun, 03 Feb 2008 01:18:49 -0800 (PST) Received: from ?192.168.1.106? ( [81.146.13.254]) by mx.google.com with ESMTPS id h7sm3869751nfh.24.2008.02.03.01.18.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Feb 2008 01:18:47 -0800 (PST) Message-ID: <47A586FD.9010608@googlemail.com> Date: Sun, 03 Feb 2008 09:18:53 +0000 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: jani.taskinen@iki.fi CC: internals@lists.php.net References: <47A447F0.8040605@googlemail.com> <47A4CB18.9020206@sci.fi> In-Reply-To: <47A4CB18.9020206@sci.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Writing PHPT tests From: zoe.slattery@googlemail.com (zoe) Jani Taskinen wrote: > 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 > Jani - of course I wouldn't ignore a mail from you :-) - I didn't see it. I talked a bit to Johannes on IRC about where to put it and in the end said I'd put it in the top level and move or remove it if anyone disagreed. I'll move it. Thanks, Zoe > > 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. >> > >