Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29427 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99667 invoked by uid 1010); 15 May 2007 07:37:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99651 invoked from network); 15 May 2007 07:37:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2007 07:37:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=zoe.slattery@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zoe.slattery@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 66.249.92.173 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.173 ug-out-1314.google.com Linux 2.4/2.6 Received: from [66.249.92.173] ([66.249.92.173:10342] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/FC-07106-D3369464 for ; Tue, 15 May 2007 03:37:35 -0400 Received: by ug-out-1314.google.com with SMTP id o4so1254247uge for ; Tue, 15 May 2007 00:37:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; 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; b=T/RNaxPPWaqeXh0K3O3mmMooaBT43EdkZY9qaoiDwej5Q/0vj0s3YtBArUazfwNxAmYOijnpNn3/162K/XJh+0hH45XPfgqN+9VMMM59EkpnLm7fjB9GN2NHZTSXOVD+0jnSqOTWkcg46FgyQNeero4/T5yBAxOq05D0w/lG6Qs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=sdCzRLiGAKomYfWApgJiZ0BtTJQVpU3ro3lCv+v9iXpe/UvlCvhNi1CEnw5R8VLlXUHWF19bVNvDLnrJ6aAl2NKOcdM03jOeIDNKs8tfEcD8H0F7voMqfNyjTnZ/U1riJOO2g5C+D6zYygwgwQzYSYYWDMDaqmd42ytgB8s6LQA= Received: by 10.67.32.19 with SMTP id k19mr5781317ugj.1179214651243; Tue, 15 May 2007 00:37:31 -0700 (PDT) Received: from ?9.20.191.73? ( [195.212.29.75]) by mx.google.com with ESMTP id s7sm952525uge.2007.05.15.00.37.30; Tue, 15 May 2007 00:37:30 -0700 (PDT) Message-ID: <46496335.5050403@googlemail.com> Date: Tue, 15 May 2007 08:37:25 +0100 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Marcus Boerger , antony@zend.com, kraghuba@in.ibm.com CC: internals@lists.php.net References: <464891C7.3040806@googlemail.com> <862412914.20070514193633@marcus-boerger.de> In-Reply-To: <862412914.20070514193633@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Tests - and a question From: zoe.slattery@googlemail.com (Zoe Slattery) Marcus Boerger wrote: Hi Marcus & Tony > Hello Zoe, > > that's pretty fine. Instead of _[bveo][0-9]?.phpt you could do > _(basic|variation|error|object)[0-9]{3}.phpt. Which is a tad bit better. > However those are just filenames helping you to find the correct test > file while developing. For that reason we didn not do so much about > generating those files. We Only made it briefly and suggested a three > digit numbering scheme. After all th ename in --TEST.. is the important > thing. > Thanks for the responses - you have both made the same point that it's the --TEST-- section that should really give a descriptive title. Marcus - I like your suggestion of basic|variation etc better than our current b|v etc scheme. Raghu - are you OK to switch to longer test case names? I think the test names are important to some degree - if you are trying to look for a testcase for a particular function it is easier to look at file names than to have to grep for the function name in a test title. Is there a mapping between the functions listed in the functional ref and their test cases? This kind of thing would be useful to us so I was thinking I'd write one. It's probably lazy of me :-) but I'd just like to click on a function name and go straight to a list of existing test cases. You also both made the same point that shorter tests are better and I think we can improve here - although we have been making an effort to make the output readable. > Thanks for the effort into test writing!!! > > best regards > marcus > > Monday, May 14, 2007, 6:43:51 PM, you wrote: > > >> Hi all >> > > >> We added a few tests for array, string and variable handling functions >> at the weekend. As always - any feedback will be welcome. >> > > >> One thing we had some difficulty with was keeping the test output small >> enough to be easily read. We chose to divide up tests like this: >> > > >> test_name_b.phpt b=basic function >> test_name_v.phpt v=variation >> test_name_e.phpt e=error cases >> test_name_o.phpt o=object specific >> > > >> This may not be the right scheme and I'm happy to change it if anyone >> has better suggestions, although it is useful to seperate out the error >> case tests because quite a lot of the differences between php5 and php6 >> seem to be in the exact form of the error message. Using this doesn't >> completely solve the problem anyway - I think some of the "v" tests will >> will end up being test_name_v1, test_name_v2 etc. >> > > > >> Thanks, Zoe >> IBM UK >> > > > > > Best regards, > Marcus > > >