Jump to content

I was wondering what do you use for unit testing?


HGeneAnthony

Recommended Posts

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.