Organizing tests in folders.
Testing a new class to isolate the creation of images.
Create an image file with the content of Image class and test if attributes are correct.
Create an image file with the content of Image class and test if attributes are correct (PNG)
Create an image file with the content of Image class and test if attributes are correct (GIF)
Refactor tests.
Refactor controller using the newly created (and tested) class Image.
Improve tests: Requset parameters (size and extension) must be required.
Unknown extension throws exception.
Rename class for better understanding: Request now is ImageConfig.
Rename attribute. Add htacces.
I was creating totally transparent png and gif images... :-0