Testing Helpers
Since a decent amount of logic resides in Helper classes, it's important to make sure those classes are covered by test cases.
Helper testing is a bit similar to the same approach for Components. Suppose we have a helper called CurrencyRendererHelper located in app/views/helpers/currency_renderer.php
with its accompanying test case file located in app/tests/cases/helpers/currency_renderer.test.php


Коментарии:
Добавить коментарий