SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Test-based coding introduction

    Hi,

    I am fascinated by the idea of test-first-then-code. I have played around with Simpletest a bit, I've worked through the example in the documentation, and I feel that I understand the basics. I'd now love to see a more in-depth example of an application being developed with tests before code.

    Other than those on the Simpletest site, are there any other examples or tutorials out there which have a step-by-step guide to Unit Testing? PHP examples only please - I just get confused when looking at Java or C code, as I've never used it before!

    Many thanks!
    ____________________


    George

  2. #2
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi...

    I wrote this one:

    http://www.developerspot.com/tutoria...ent/page1.html

    Jason Sweat's book has loads of examples and some of the material may be online somewhere.

    There are some more tutorials on Sebastian Bergmann's site using PHPUnit2 and he wrote the PHPUnit pocket book, which is on-line.

    Generally you pick up TDD by trying and then asking when you get problems. It's a pretty straight forward skill and often an instant win.

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great stuff Marcus, thanks!
    ____________________


    George


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •