/usr/portage

Smarty templates and code coverage 0

PHPUnit provides a filter util to mark a piece of code as test fixture. This makes the template disappear from the coverage report and helps a lot to keep the code coverage report readable and clean. In case of Smarty you just use the builtin php-tag to execute native PHP calls:

{php}PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'TESTS');{/php}

Filed under , , , & no comments & no trackbacks

Trackbacks

Trackback specific URI for this entry

No Trackbacks

Comments

No comments

Add a Comment & let me know what you think