Hi guys,

Thanks for your responses, much appreciated. Thanks v much for the links, very interesting.

@Felix, I'm definitely one of those people in your divide and conquer blog. I'm also trying my best to become agile. I can't believe I didn't think to mock the Models when in the controller, especially since I've thought about doing it a few times before. For some reason it didn't come to me when actually at the time (probably due to the continuing lack of sleep). So to yourself and teemow, thanks for the link to the helper. Before I get bogged down in errors though, does it work with SimpleTest? While we're on the subject, will your test suite be based on SimpleTest?

Since I couldn't get my controllers tested, I've been playing around with safety with model tests. I've made a very dirty class for this purpose which can be found here:
http://www.cakephp.org/pastes/show/99b95734fbb3b5a90d9b20adbc381aa9

Please excuse it's non-cakeyness. I didn't bother to make it better as I wasn't sure till this morning if it was a good idea or not. Dhofset had a look and recons it's not a bad idea so I'm in the process of replacing the mysql specific functions with cake's DBO model methods.
Here's a snapshot of my progress so far:

http://www.cakephp.org/pastes/show/87303c2af5b1c8af35e3fe4ab5ed8e35

Please excuse the mess as I've been up all night and am starting to hallucinate with tiredness :-? At this stage I'll live with the embarrassment if I could get an opinion.
I'm looking for a cake-ier way to read a MySql dumpfile and parse it. As you'll see the existing method doesn't even pretend to do this.

I'd really appreciate some feedback with this from anyone who's interested.

Cheers,

Sonic


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

Reply via email to