Category Archives: TDD

PHPUnit – Passing Environment Variable To Your Application

I’m using environment variables for my configurations so that it will be easy to switch from development to production or to testing mode without changing any codes. As far as I’m using Zend Framework with the tip that I used … Continue reading

Posted in PHPUnit | Tagged , , , | Leave a comment

Kohana Unit Testing – Finally

I’ve written about using PHPUnit in Kohana in the past. However, there is now an official Unit Testing module for Kohana v3 (uses PHPUnit). From the previous hacks, I changed it now to be compliant with the official unit testing … Continue reading

Posted in Kohana v3, PHPUnit | Tagged , , , , , , , | 9 Comments

Unit Testing Kohana v3 – PHPUnit

Like Zend Framework, I also created unit testing for Kohana v3 based projects. It is done seamlessly with PHPUnit of course. The following are the simple steps I’ve done to setup a PHPUnit test environment for Kohana v3. UPDATE: I … Continue reading

Posted in Kohana v3, PHPUnit | Tagged , , , , , , | 5 Comments

PHPUnit with Zend Framework – Unit Testing

Before, I used SimpleTest for unit testing. However, given the more advanced PHP 5.xx features and coding standards, I completely switch to PHPUnit. Moreover, PHPUnit’s coding convention is similar to Zend Framework and PEAR. Directory Structure Since PHPUnit is already … Continue reading

Posted in PHPUnit, Zend Framework | Tagged , , , , | 1 Comment

SimpleTest with Zend Framework – Unit Testing

Actually, Zend Framework has its own unit testing tool using PHPUnit. It is called Zend_Test_PHPUnit*. However, my first encounter with Unit Testing in PHP (actual testing) is with SimpleTest and I easily get acquinted with SimpleTest and I’m very comfortable … Continue reading

Posted in SimpleTest, TDD, Zend Framework | Tagged , , | 4 Comments

Starting To Learn (TDD) Test Driven Development

I am really new to this TDD – Test Driven Development. One of the forum admin in PHPUGPH is advocating in TDD. I got a PowePoint Presentation file from his blog: Red Green Refactor – Test Driven Development with .NET … Continue reading

Posted in TDD | Tagged , | Leave a comment