Re: Naming conventions in phpt

From: Date: Fri, 25 Jan 2008 18:33:54 +0000
Subject: Re: Naming conventions in phpt
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4746@lists.php.net to get a copy of this message
On Jan 25, 2008 7:30 PM, Helgi Þormar Þorbjörnsson <helgith@gmail.com> 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? > > > > On a sidenote - a small section ("How to write tests") referencing the > > phpt URL and maybe a phpUnit HOWTO would be nice in the PEAR manual as > > well. > > Can anyone contribute this? :) If so I write something up. > > > > Thanks, > > Till > > > > 1, http://qa.php.net/write-test.php > > 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.phpt in > the classname dir > > There so many different ways I've seen people do it, do we really need or > want a standard on this ? I was curious since the intro to phpt didn't seem to take OO into account. ;-) Till

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