Re: [PHP] Re: Unit Testing

2009-04-29 Thread Darren Karstens
You are right, when doing unit tests you only want to test the functionality of the current class and so if there are errors its easier to track down which class is causing the problem. I personally use an api called SimpleTest for my php testing and what you can do with this is create Mock

Re: [PHP] Re: Unit Testing

2009-04-28 Thread Nathan Rixham
Philip Thompson wrote: On Apr 27, 2009, at 11:38 AM, Simon wrote: As a programmer, i always test what I'm coding as i code it (mostly to make sure i dont include typos), but i feel it is best to make proper testing once the component is ready and working fine. If your project is large, it

[PHP] Re: Unit Testing

2009-04-27 Thread Nathan Rixham
Philip Thompson wrote: Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist me... We have an application that's currently in production, but we're constantly modifying/upgrading it. We did not do unit testing early on because

Re: [PHP] Re: Unit Testing

2009-04-27 Thread Simon
As a programmer, i always test what I'm coding as i code it (mostly to make sure i dont include typos), but i feel it is best to make proper testing once the component is ready and working fine. If your project is large, it might be a good idea to break it in several 'modules' or section if

Re: [PHP] Re: Unit Testing

2009-04-27 Thread Philip Thompson
On Apr 27, 2009, at 11:38 AM, Simon wrote: As a programmer, i always test what I'm coding as i code it (mostly to make sure i dont include typos), but i feel it is best to make proper testing once the component is ready and working fine. If your project is large, it might be a good idea to

Re: [PHP] Re: Unit testing ?

2005-06-07 Thread Matthew Weier O'Phinney
* mbneto [EMAIL PROTECTED] : Thanks for the reply. Your email confirmed what I've read/thought about the tests. I'll look this SimpleTest even tough PHPUnit2 seems to do the job fine. Use the unit testing framework with which you are most comfortable; the ideas remain the same, just the

Re: [PHP] Re: Unit testing ?

2005-06-05 Thread mbneto
Hi Matthew, Thanks for the reply. Your email confirmed what I've read/thought about the tests. I'll look this SimpleTest even tough PHPUnit2 seems to do the job fine. If you have more info (like books, urls, examples) please send me. regards. On 6/2/05, Matthew Weier O'Phinney [EMAIL

[PHP] Re: Unit testing ?

2005-06-02 Thread Matthew Weier O'Phinney
* mbneto [EMAIL PROTECTED]: I am trying the phpunit2 for unit testing but the examples found in the documentation are few and do not address, for example, tests when database access is involved. Perhaps this belongs to a more general question (i.e strategies for unit testing) so any urls,

Re: [PHP] Re: Unit Testing

2004-06-16 Thread Trevor Nesbit
Hi I'm interested in locating something straight forward to teach to our programming students... Am appreciating the discussion so far... Trevor Nesbit MBS BSc BCom CA PGDipBusAdmin Degree Leader for Bachelor of ICT Programme Leader for Graduate Diploma in eCommerce School of Computing -

[PHP] Re: Unit Testing

2004-06-16 Thread Red Wingate
Used all but 'Generic PHP Framework' and everything was quite fine and worked out just as i expected. But i was still missing some features which made me build my own small library to fit into my Framework. -- red Rick Fletcher wrote: Has anyone done any PHP unit testing? I've been looking around

[PHP] Re: Unit Testing

2004-06-16 Thread Red Wingate
Allmost forgot about this one: http://www.phppatterns.com/index.php/article/articleview/33/1/2/ very well written ( phpPatterns() ) covers some other nice topics as well, allways worth a read. -- red Red Wingate wrote: Used all but 'Generic PHP Framework' and everything was quite fine and worked

[PHP] Re: Unit Testing

2004-06-15 Thread Torsten Roehr
Rick Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Has anyone done any PHP unit testing? I've been looking around for a unit testing library to try out. Below are the ones I've found so far: SimpleTest: http://www.lastcraft.com/simple_test.php PHPUnit (dead?):

[PHP] Re: Unit Testing

2004-06-15 Thread Justin Patrin
Rick Fletcher wrote: Has anyone done any PHP unit testing? I've been looking around for a unit testing library to try out. Below are the ones I've found so far: SimpleTest: http://www.lastcraft.com/simple_test.php PHPUnit (dead?): http://phpunit.sourceforge.net/ Pear PHPUnit:

[PHP] Re: Unit-testing PHP code

2003-02-13 Thread Mark Harwood
Check out. http://www.phpbuilder.com/columns/reiersol20030126.php3 http://pear.php.net/manual/en/packages.phpunit.tutorial.php Mark Karl Traunmueller [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I've written some small Web applications with PHP