Re: Naming conventions in phpt

From: Date: Fri, 25 Jan 2008 22:15:47 +0000
Subject: Re: Naming conventions in phpt
References: 1 2 3  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4748@lists.php.net to get a copy of this message
On Jan 25, 2008 9:52 PM, Ken Guest <kguest@php.net> wrote: > On Fri, Jan 25, 2008 at 06:30:21PM +0000, Helgi Þormar Þorbjörnsson wrote: > > Hi > > > > On Jan 25, 2008 12:31 PM, till <klimpong@gmail.com> wrote: > > > > > Hey, > > > > > > I am just getting around to phpt and I wanted to ask what the naming > > > conventions are in OO. > > > > > > I read online (1, btw - very straight forward guide) that > > > bug_<no>.phpt, method.phpt etc. are acceptable. But I am wondering how > > > it conforms with OO - e.g. classname.method.phpt? > > > > <snip> > > We don't have any specific standard, php qa says bug_21343 for some > reason I > > tend to do bug323424, and well people sometimes do classname/method.phpt > > where the classname is a dir and sometimes classname/method/foobar.phpt > when > > people need multiple tests per method or do method1 method2 method3.phptin > > the classname dir > > > > There so many different ways I've seen people do it, do we really need > or > > want a standard on this ? > > > > why would we not want a standard? > surely it's better to have a standard than to be disorganised? > > other developers, and I'm sure people new to coding for PEAR, may find > it useful knowing how to find, and where to place, specific tests for > the components/packages they are working on. Recommendations and a standard is two different things, this is one of those things we could write a recommendation about but as to a standard, that I think might be too much with all the rules we already have. Regards Helgi

« previous php.pear.qa (#4748) next »