Using PHPUnit to run tests, I'd love to have code coverage metrics for my Smarty templates.
Unfortunately this doesn't work out of the box, because Smarty compiles the templates into .php files, so that the templates itself do not have coverage information. Looking at the compiled .php file coverage is not nice since the compiled files are near to unreadable.
What can I do to get the original template code annotated with coverage information?
I'd like to have a tool that integrates with PHPUnit's PHP_CodeCoverage, since I could see the coverage in its generated HTML files then. But any other solution will also suffice :)