{* Smarty *}

Cooking Special Backend Unit Test

Unit tests for website backend models (see trunk/src/website/lib/tinymvc/myapp/models/ folder).
Usage:
http://myhost.com/index.php?page=unittest[&verbose=true]

Tests:

{foreach from=$tests item=test}
* Test: [{$test.name}]... {if $test.passed}Passed!{else}Failed: {$test.message}{/if}
{foreachelse}
No tests done.
{/foreach}

Errors:

{foreach from=$errors item=error}
* {$error}
{foreachelse}
No errors!
{/foreach}

Outputs:

{foreach from=$outputs item=out}
{if $out.message}Message: {$out.message}
{/if}
Output: {$out.object}
{foreachelse}
No outputs. Run unittests with verbose=true to force outputs.
{/foreach}