News Feed
Sections




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

Debuggable Blog:
Unit Testing in CakePHP Part 1 - Introduction to Unit Testing
May 07, 2008 @ 10:23:29

On the Debuggable blog, Tim Koschutki has posted the first part of a series looking at unit testing the CakePHP framework. This first article introduces you to the idea of unit testing to help lay the foundation for what's to come.

So you want to read up on Unit Testing in CakePHP? That is great, testing can be such a help in finding bugs. [...] Surprisingly, many people do not know yet what unit testing is. In this first part of a whole series you can get a good grasp of what it is and is not.

He goes over the basic concepts behind the testing - setting up test cases, comparing results, automating them and how they related to code coverage. He gets into more detail with a list of the assert functions (like assertNotEqual or assertClone) and some examples using the simpletest unit testing software. He wraps it up by listing some of the benefits of unit testing, the limitations of it, TDD and what Mock objects are.

0 comments voice your opinion now!
cakephp framework unittest simpletest introduction


blog comments powered by Disqus

Similar Posts

Ole Markus With's Blog: Experimenting with uWSGI and its PHP plugin

Debuggable Blog: How to do Group By conditions in Model find() calls in the CakePHP RC1

Chris Hartjes' Blog: What's In Chris' Brain, July 2008 Edition

Cody Caughlan's Blog: Database Migrations for PHP5

Felix Geisendörfer's Blog: Agile Web development (with CakePHP)


Community Events

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


community interview project podcast introduction application series programming php7 composer api symfony opinion list framework laravel yii2 part2 language example

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