masterexploder/PHPThumb — pull request #62 by Blackshawk (2012-05-15 16:53:41+00:00)
Title: Reorganization, namespaces, unit tests - at new branch

Reference this pull request - simply pointing it at a new branch.

https://github.com/masterexploder/PHPThumb/pull/61

I started a reorganization of this project a few days ago and I had a few goals in mind.

PHP 5.3 namespaces (PSR-0 compliant)
Project be autoload-able
Refactor class structure
Refactor plugin system
Add unit testing
Add project to Packagist for quick installation and autoloading
The library is now fully compatible with existing frameworks like ZF, Symfony2, and others that sport standard autoloaders. All classes are namespaced, the plugin system has been refactored (and is, I believe, much more effective and existing plugins can be easily ported).

PHPUnit tests have been included and as of the latest commit code coverage is at about 15% (up from 0% - there were no automated tests when I started). These tests cover most of the "operational" work rather than image processing. Such tests will probably need to be added by smarter people than me.