Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29459 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50195 invoked by uid 1010); 16 May 2007 11:58:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50180 invoked from network); 16 May 2007 11:58:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2007 11:58:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=softvirus@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=softvirus@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.241 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: softvirus@gmail.com X-Host-Fingerprint: 209.85.132.241 an-out-0708.google.com Received: from [209.85.132.241] ([209.85.132.241:64843] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/80-41280-5F1FA464 for ; Wed, 16 May 2007 07:58:45 -0400 Received: by an-out-0708.google.com with SMTP id d31so27289and for ; Wed, 16 May 2007 04:58:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=B7KzmYucoKfqzuu0BtLdxjsQgouUn8FBqQ3QwtDCy6fLeCc+l1ExZHnQ6wRwjLQdAIwQHgfKgQGdDWxBaThgtEbW7pCH7AiVlhzjQlHojZvTp7HlQMMpURoXcPIIHvvgOsSyqaMXKF/4jzHz8a2MZikfS6BnDXsOZwxYHixTtC8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=XJ1GbD+gvfcGLZ4Bd92ICBPK/ZyzO6ef2sDD8chHgIwCwjDRLjLuUwje4/O9jWeqUGmCuG60OtUVHuXLK2gIbsMPRCqlsC3BEnALgertw1AVWh26/cUW002kIzokO7LYAdZln8rP0lgIaHDtyH9ndKsPPvnqrTbInizF1/sZH64= Received: by 10.100.166.14 with SMTP id o14mr5998475ane.1179316722691; Wed, 16 May 2007 04:58:42 -0700 (PDT) Received: by 10.100.109.17 with HTTP; Wed, 16 May 2007 04:58:42 -0700 (PDT) Message-ID: <5e2913440705160458v1255e17fv11f79820503c9cf@mail.gmail.com> Date: Wed, 16 May 2007 17:28:42 +0530 To: "Zoe Slattery" Cc: "Stanislav Malyshev" , internals@lists.php.net, helly@php.net, antony@zend.com In-Reply-To: <464AA8A0.6030105@googlemail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23147_7341571.1179316722584" References: <464891C7.3040806@googlemail.com> <862412914.20070514193633@marcus-boerger.de> <46496335.5050403@googlemail.com> <5e2913440705150052l7bac4028sc3ac26655b38b141@mail.gmail.com> <464968C5.9060608@zend.com> <4649E549.8040303@zend.com> <464AA8A0.6030105@googlemail.com> Subject: Re: [PHP-DEV] Tests - and a question From: softvirus@gmail.com (Raghubansh) ------=_Part_23147_7341571.1179316722584 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Zoe, It would be nice thing to have mapping between categorization of the functions in the php doc and the source/test tree structure but keeping the tree structure as per the source code is better thing to do. If i have got it right as of now the testcases are places based on the location of the source file. For example testcases testing functions in the ext/standard/array.c are placed in ext/standard/tests/array dir, ext/standard/tests/reg.c is placed in ext/standar/tests/reg/ dir and so on. Testcases for functions found in the Zend dir are placed in Zend/tests dir. It would be nice to have the following addition to ext/standard/tests dir with respect to variable handling functions ( varible handling funnctions are implemented by different source file,e.g : type.c, var.c, Zend/zend_builtin_functions.c, etc) : A sub dir "type" (ext/standard/tests/type) where all the testcases testing functions in type.c can be placed, currently its placed in general_functions(ext/standard/tests/general_funtions) dir A sub dir "var" (ext/standard/tests/var) where all the testcases testing functions in var.c can be placed, currently they are placed in general_functions(ext/standard/tests/general_functions) dir, and so on. Doing this way its makes is very easy for locating a testcase and give better dir structure for test organization. It would be nice if these details were documented on php.net, May be right place is qa.php.net under the doc "how to write test". Marcus, Tony and others, Any comments from you ? Also notice that we have done commit of some string functions(strcasecmp, strcmp, strncmp) in string dir, which should have been committed in Zend/tests dir because those functions are implemented by source file placed in Zend dir. Best Regards, Raghubansh, IBM India On 5/16/07, Zoe Slattery wrote: > > Stanislav Malyshev wrote: > > I think it does. If one needs to see which tests there are or are > > there any tests that test particular thing or inspect certain aspects > > of a functionality, navigating a maze of func_01234.phpt, all alike, > > is a nightmare. Of course, I could open all of them one by one and > > remember which one does what - that is if I were a being with > > unlimited lifespan, infallible memory and never felt bored - but for > > regular human it's a painful experience. So when writing a new tests > > it would be very good to give them names that make sense, it doesn't > > cost anything and helps people. Renaming old ones might be somewhat > > boring task, so not sure anybody ever would do that... > I'm happy to rename as we work through - if we can see an obvious and > more descriptive name. Also, what about making the test directory > structure match the functional reference for core functions? Some of it > does at the moment (strings, array) but it would be good to put all the > variable handling tests in ext/standard/tests/variable_handling for > example. It's another thing we could do as we go along... > > Zoe Slattery > IBM UK > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > ------=_Part_23147_7341571.1179316722584--