Jump to content

PHP and Unit Testing


jasper182

Recommended Posts

I am interested in doing my next side project using an agile methodology and I've read that unit testing is a big part of that.  I have done some research on unit tests, but I'm still a little confused.  I can see how it can be used for some cases, but I fail to see how to write good unit tests when you have functions with complicated output or when you are retrieving data from a database.  Would I simply make very generic tests or is there something that I'm missing.  If anyone cares to help shed some light on this topic for me, I'd be most appreciative.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/95894-php-and-unit-testing/
Share on other sites

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.