views:

280

answers:

2
+3  Q: 

PHP Unit testing

Is there any EASY php testing Framework and may be simpler than simpletest and not command line based like PHPUnit ?

+2  A: 

Simpletest

Actually here is a list of all the common PHP unit testing frameworks.

I think you will find that the testing frameworks themselves have little interest in developing fancy GUIs. There is however several third party tools/applications/plugins that you can checkout. I use the phpunit integration within Netbeans a lot, and it works very good.

Peter Lindqvist
commandline means running the testing from command line like `php /tests/run_tests.php`
thephpdeveloper
well duh, but is there a simpler way of doing it?
Peter Lindqvist
i run phpunit mostly in netbeans which has some nice integration with code coverage etc.
Peter Lindqvist
Thanks that was the closest answer :)
AlSayed Gamal
+1  A: 

The requirement that it be

not command line based

is curious. In traditional PHP development you make an edit, load a webpage in your browser, and repeat. Instead, you can make an edit, run a piece of your test suite at the command line, then repeat. I have discovered the latter practice is usually much faster.

Ewan Todd
That's a very helpful downvote!
Ewan Todd
helped to revoke that downvote. however i would still prefer run test suites on browsers.
thephpdeveloper
Thanks. I couldn't figure out if it meant, "No, my traditional development isn't like that," or "Hey, browser based is much faster," or "Take that for no particular reason."
Ewan Todd
Ehm, me neither. Besides i never thought of web based when i thought of non-cli interface, i immediately thought of guis such as netbeans/eclipse. Why would one want to run the test suites in the browser window anyway? When you can have it inside your IDE. Well of course if you're not using an IDE that makes for some interesting dilemma. But otherwise?
Peter Lindqvist