News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Hartjes' Blog:
Testing Components In CakePHP
July 05, 2007 @ 07:16:38

Chris Hartjes has posted a quick example of a useful method for CakePHP developers - how to test components.

Using the test suite is actually quite easy: drop SimpleTest into your cake/vendors directly and you're ready to start writing your tests. Having written tests using SimpleTest before it wasn't going to be too hard for me to get them done. But there was one little problem: how do you test a component?

He includes an example of such a test, running it on his Email controller to try to send an email via SMTP.

0 comments voice your opinion now!
cakephp framework unittest simpletest email controller smtp cakephp framework unittest simpletest email controller smtp


blog comments powered by Disqus

Similar Posts

Sebastian Bergamnn's Blog: SeleniumTestCase Improvements in PHPUnit 3.2

Jim Plush\'s Blog: Another PHP Framework that falls flat - PHP on Trax

The Bakery: introduction to dAuth v0.3

The Bakery: Deploying CakePHP with Capistrano

Ken Guest's Blog: Validation in Depth - a retort to using just regular expressions


Community Events





Don't see your event here?
Let us know!


version voicesoftheelephpant release composer opinion framework introduction community podcast tool security library artisanfiles series symfony language list laravel conference interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework