Trae ringtonesGarth Brooks ringtonesHIM ringtonesTLC ringtones

Cake has the edge on testing

One big selling point for CakePHP is that its test framework is Simpletest, while ZF uses PHPUnit. The difference between these two is that simpletest has better mock object support.
This is important if you test first, then write code--which you really should try! it's liberating--because your controller frequently interacts with model (database) and view, so it's nice to know, by using a mock database/view, that your controller is doing exactly what it should. In other words, you have to have the mocks in order to fully test (i.e., define by means of tests) the controller's API.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <codeblock> <blockquote> <h1> <h2> <h3> <h4> <h5> <img>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Use the special tag [adsense:format:group:channel] or [adsense:flexiblock:location] to display Google AdSense ads.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.