|
-
Jun 14th, 2009, 02:05 AM
#1
Thread Starter
New Member
TDD in PHP
Hi,
I just lately got into TDD while nutting out Asp.Net MVC and after getting the hang of things, just love it.
So I thought I'd look into doing TDD with PHP and after some searching it seems PhpUnit and SimpleTest are the most recommended.
Apparently PhpUnit have a lot of similarities to NUnit, which I also want to get my hands dirty with (for the Asp.Net work), so it sounds tempting.
Thought I'd first ask here for some tips you guys have learned the hard way.
Any comments, feedback is most welcome
Cheers
ps: I dont use Zend. Good ol OOP PHP
-
Jun 14th, 2009, 06:42 AM
#2
Re: TDD in PHP
Please choose one of the followin disambiguations that relates to TDD:
http://www.google.co.uk/search?clien...=Google+Search
-
Jun 14th, 2009, 06:56 AM
#3
Thread Starter
New Member
Re: TDD in PHP
I was referring to Test Driven Design (Create Test, then Code).
Sorry for creating a confusion, as I know there are some my xDD's (DDD, BDD, TDD).
-
Jun 14th, 2009, 03:06 PM
#4
Re: TDD in PHP
There are pros and cons to this approach. It will work well with the back end, but the user interface should also be tested thoughoughly using both black and white box approaches.
PHPUnit is very simialr to JUnit too and is most effective at testing to a specification. I.e. does a program / library produce the output it should given specific inputs. I would also recommend putting any web applicaiton through a series of stress tests and apply fuzzing to all inputs; this will help weed out any security vulnerabilities.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|