HGeneAnthony Posted April 6, 2007 Share Posted April 6, 2007 I was wondering what do PHP developers use for Unit Testing. Under Java there's JUnit (which is popular) and I noticed there's a port for PHP. However, I'm having problems with it and I was wondering if there's something better. Link to comment https://forums.phpfreaks.com/topic/45912-i-was-wondering-what-do-you-use-for-unit-testing/ Share on other sites More sharing options...
per1os Posted April 6, 2007 Share Posted April 6, 2007 Really I just create my own test file. In that if I do a DB I make sure I start the connection and do not use the DB class as that may have issues on it's own, or I will place the DB classes unit tests at the top of the page and if any of those fail, fail the rest of the program. But yea I just create my own after writing out my Use-Test case scenarios. I know there is a UML Program for PHP, but I never used it. Probably would be what you want to look into. Link to comment https://forums.phpfreaks.com/topic/45912-i-was-wondering-what-do-you-use-for-unit-testing/#findComment-223055 Share on other sites More sharing options...
HGeneAnthony Posted April 6, 2007 Author Share Posted April 6, 2007 Well if anyone wants to know I found one on sourceforge which works pretty easy. Here's the URL: http://sourceforge.net/projects/simpletest/ Here's a simple tutorial: http://www.lastcraft.com/simple_test.php#unit And here's a list of asserts available: http://www.lastcraft.com/first_test_tutorial.php Link to comment https://forums.phpfreaks.com/topic/45912-i-was-wondering-what-do-you-use-for-unit-testing/#findComment-223094 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.