puphpet/puphpet — pull request #20 by frastel (2013-05-22 01:37:13+00:00)
Title: Refactored logic in test action for better testability

The createAction works now with a formatter and compiler. The main logic was moved to those classes and tests were provided.
The manifest compiler renders a twig template and the formatter formats the big configuration array for the compiler and so the template.
I also started to do a simple "functional" test (mmh only kind of because it does simulate a real web request) on templating.

All PuppetModule classes are used within service definition and those classes had to be modified a little bit. An additional setConfiguration method was added to be able to assign the configuration afterwards the instances are already created during service generation.

Also this introduces no real feature to the end user I hope you like the changes.