Major improvment

Hello,

I've found your repo and I think it's a great idea !

Anyway, there's a lot of mistakes or wrong ideas in some patterns and I try to improve the code with PSR-0 and full unit tests with PHPUnit.

Changes I've made :

Adding a config and autoloader for PHPUnit
Fixing PSR-0 for namespace and one class per file (for tested patterns)
Moving the original Factory Method in its right place : Static Factory (+ Tests)
Adding the Simple Factory pattern (+ Tests)
Adding a real Factory Method Design Pattern "by the book" (+ Tests)
Rewriting the Abstract Factory which was not a abstract factory by the GoF definition (+ Tests)
Fixing Composite Pattern which was not a Composite pattern (+ Tests)
Fixing Decorator Pattern which was only a Wrapper pattern (+ Tests)
Comments on why iterator pattern example is not relevant
Adding a new Iterator example without external influence of other pattern (+ extended Tests)
Adding a more visual example for Facade pattern (+ Tests)
Fixing the Command pattern by adding missing mandatory classes (+ Tests)
Fixing the Adapter Pattern because it was buggy and incomplete (+ Tests)
Adding Template Method Pattern (+ Tests)
Adding Builder Pattern (+ Tests)
Adding Mediator Pattern (+ Tests)
Adding a full example of Chain of Responsibilities (+Tests)

Hope this helps !

Bye