Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:31 PM, Eric Butera wrote: > On Wed, Jan 21, 2009 at 7:24 PM, Murray wrote: >> I think this is my problem -- basically to know how to get some benefit from >> it. >> >> If I have a function in a class that is supposed to return some rows, how >> would I go about performin

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:24 PM, Murray wrote: > I think this is my problem -- basically to know how to get some benefit from > it. > > If I have a function in a class that is supposed to return some rows, how > would I go about performing a useful unit test on it? In theory (and in my > current p

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Murray
I think this is my problem -- basically to know how to get some benefit from it. If I have a function in a class that is supposed to return some rows, how would I go about performing a useful unit test on it? In theory (and in my current practice), I can simply dump the array or object, or step th

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:01 PM, Murray wrote: > Hi All, > > I'd like to understand unit testing better (or, in fact, at all). I > understand the broad idea that testing Is A Very Good Thing, but when I have > tried to look into it further (for example, have just been looking through > the PHPUnit

[PHP] Help me understand unit testing?

2009-01-21 Thread Murray
Hi All, I'd like to understand unit testing better (or, in fact, at all). I understand the broad idea that testing Is A Very Good Thing, but when I have tried to look into it further (for example, have just been looking through the PHPUnit site), I always end up thinking 'This looks like more trou