Results 1 to 4 of 4

Thread: TDD in PHP

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    5

    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

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: TDD in PHP

    Please choose one of the followin disambiguations that relates to TDD:

    http://www.google.co.uk/search?clien...=Google+Search
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    5

    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).

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width