PHP Developers Network

Testing Links
Page 1 of 1

Author:  McGruff [ Wed Jun 15, 2005 7:47 pm ]
Post subject:  Testing Links

Testing frameworks for php

SimpleTest, docs, and an interesting blog can be found on


Marcus Baker: test driven design
Introduction to SimpleTest by Perrick Penet:
PhpLondonWiki, including the beer example: Unit Testing
Fowler on integration v state-based testing Mocks aren't Stubs

Other sites


"Test driven development (TDD) is emerging as one of the most successful developer productivity enhancing techniques to be recently discovered. The three-step: write test, write code, refactor – is a dance many of us are enjoying. This site is dedicated to promoting techniques, tools, and general good will in the test-driven community.
- Eric Vautier, David Vydra


php|architect's Guide to PHP Design Patterns by Jason E. Sweat
Design patterns often seen in php apps. Most (all?) classes are accompanied by unit tests which should help to give you an idea what tests look like. Also contains an appendix on SimpleTest testing practices.

Author:  John Cartwright [ Wed Jun 15, 2005 7:55 pm ]
Post subject: 

Nice Test Forum :) :twisted: :twisted: :twisted: :twisted:

Author:  m3mn0n [ Sat Nov 19, 2005 3:56 am ]
Post subject: 

Here is a good link:

Author:  martinig [ Thu May 18, 2006 6:07 am ]
Post subject:  More testing resources

You will find interesting articles on the theory and practice of software testing in the HTML archives of the Methods & Tools newsletter:

Author:  Arawn [ Thu Jun 07, 2007 7:35 pm ]
Post subject: 

xUnit Test Patterns: Refactoring Test Code, started reading this book the other day, not even near finish, but I'm already willing to recommend it. Not PHP specific, no PHP code samples and PHPUnit is actually mention only in the Appendix. C# and Java seem to be the default in this book. However, the book isn't about the code but patterns, smells and other things you would rather not learn the hard way.

Author:  Maugrim_The_Reaper [ Fri Jun 08, 2007 3:51 am ]
Post subject: 

Something that's more an update. Simpletest now has a website over at:

I'll have to look up Arawn's recommended book...

Author:  rohit147 [ Wed Oct 17, 2007 4:23 am ]
Post subject: 

I have already read the ebook which arawn mentioned in his post - well its good for newbies but as mentioned by arawn you wont learn something entirely new in it.

Author:  Jenk [ Fri May 23, 2008 9:17 am ]
Post subject:  Re: Testing Links

a nice (and short) article describing TDD: ... Wrong.html

Author:  josh [ Sun Oct 26, 2008 6:30 am ]
Post subject:  Re: Testing Links

TDD anti Patterns ( what NOT to do ) ... -patterns/

Author:  koen.h [ Sat Nov 22, 2008 6:44 am ]
Post subject:  Re: Testing Links

Author:  Luke [ Mon Mar 30, 2009 6:26 pm ]
Post subject:  Re: Testing Links

I just found this excellent "Guide to writing testable code": ... able-code/

And here is a PDF version of it: ... 20Code.pdf

Honestly it is really good, check it out.

Author:  josh [ Mon Mar 30, 2009 8:30 pm ]
Post subject:  Re: Testing Links

Luke wrote:
Honestly it is really good, check it out.

"dont look for things, ask for things" ..... thats good right there

Author:  yxl01 [ Sat Apr 04, 2009 11:45 am ]
Post subject:  Re: Testing Links

Model-Based Testing has been around for a few years. Check out a book by Mark Utting: Practical Model-Based Testing: A Tools Approach. A good example of such tool for testing web applications is TestOptimal (

It may seem hard to justify of spending time creating the system model, but if you look at the overall testing process, you actually gain efficiency at the end especially if you are in the agile development process which has a much shorter cycle and thus regression testing needs to be done a lot more often and your testing scripts need to be changed a lot frequently. You can find many literatures on Model-Based Testing on the internet or you can just go to in the support section, there are a few articles and presentations that cover the basics of Model-Based Testing.

Author:  josh [ Wed Apr 15, 2009 3:25 am ]
Post subject:  Re: Testing Links ... injection/ - circular dependencies ( found thru above link )

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group