unit testing

Building a MVC Framework - An Introduction

As promised, we'll take a complete tour through the process of building a bare bones MVC framework in PHP. The goal of this series of articles is to explain MVC principles and design patterns in a useful way. This information is aimed at PHP programmers who are familiar with object oriented PHP, and have heard of, or poked around frameworks, MVC basics, and other design patterns, but are unsure how it all ties together. With all that out of the way, let's start with examining the concepts we'll cover.

Design patterns we'll cover in this introduction:

Unit testing telemarketers

I've added some unit tests for the code I posted, I'll try to make sure all code comes with tests (free!) from here on in. I'm working on an update to this site that will allow for easier viewing of code, an event which should prove to be wondrous and exciting!

In completely unrelated news, my local news paper started me on a free 3 week trial today. Despite the whole dead tree thing, I have to admit I do enjoy the simplicity of reading over a paper with coffee, it is truly one of the great joys in life.

Random Code!

A repository of random code and some explanations behind it all. Non-drupal related code is licensed under Creative Commons (see the footer for more specific licensing details), so feel free to use and abuse as you see fit. Drupal modules are GPLv3.

Testable code can be found here. Tests are created in Simple Test.

Pagination Node (Drupal Module)