While writing some unit tests for my app I noticed some behavior that
has me a little confused in regards to the setUp and tearDown
functions.  When doing unit testing with just SimpleTest, the setUp
and tearDown functions are the first and last methods to run when a
test method is executed.  This is not the case in the CakeTestCase
class.  The setUp function executes before every test method in the
test case along with the start, end, startCase and endCase methods,
while the tearDown function executes after every test method along
with the start, end, startCase and endCase methods.

To me this seems like a bug since the SimpleTest behavior is to run
setUp before each test method and tearDown after.

Can anyone shed any light on this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to