/log

life.log()

TDD using PHPUnit, NetBeans

with 5 comments

السلام عليكم و رحمة الله وبركاته

This post is more than month on my drafts ..

It’s about using NetBeans 6.7.1 PHP IDE with PHPUnit I wanted to show how easy is it to make a test and run it ..

so I’ll share the experiment ..
As shown in the following slideshow:

1-I created a PHP Class file:

2-I created empty file with a class and couple of methods

3-I generated a test for the class and it prompted me to choose the folder where I’ll put the tests

4-Finally(My favorite part) I right click the test file to run it and I get the result in green and red … obviously
green is test passed or pending and red if it’s failed ..

Note: I used to use simple test , still can’t find equivalent test method to test the HTML interface … and it always required me to view the test results in the browser ..
PHPUnit is more fun now and it’s integrated to NetBeans, the IDE I recently love at most specially on Mac

Written by me

February 4th, 2010 at 11:37 am

5 Responses to 'TDD using PHPUnit, NetBeans'

Subscribe to comments with RSS or TrackBack to 'TDD using PHPUnit, NetBeans'.

  1. very nice work, I used to love netbeans on linux but I started to hate it when I went to eclipse, the performance gain is astonishing and the customizability of the IDE is incomparable.

    However, netbeans is still a features monster and the interface is pretty clean on mac.

    Ahmed Soliman

    4 Feb 10 at 2:01 PM

  2. Thanks for your reply ..
    I actually considered using eclipse for similar reason .. which is the ability to code in many languages using the same IDE ..
    Recently I’m doing python development and netbeans python IDE isn’t the best ..
    so I’m considering using eclipse as an IDE for both python and PHP and all ..

    Again Thanks for the reply, I’m happy that you are following my posts :)

    me

    4 Feb 10 at 8:02 PM

  3. thanks for this simple post

    Gawish

    4 Mar 10 at 6:09 PM

  4. You are welcome :)

    me

    4 Mar 10 at 6:50 PM

  5. TDD this is not my young padawan…
    Netbeans is tdd friendly not…
    you must be strong and use the force of java and eclipse or c# and VS to have tdd in ide able :D

    tdd

    23 Jun 11 at 10:43 PM

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes