News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP in Action Blog:
Testing Smarty templates
January 29, 2008 @ 08:47:00

On the PHP in Action blog today, there's a quick new post that talks about not only using the Smarty templating system but also a method for testing it to check for any kind of possible failure.

As I mentioned in my blog post on Paparrazzi testing, Uncle Bob (Robert C. Martin) has discussed how to test web templates or server pages. Since I'm currently working with Smarty templates, I wanted a simple way to run tests on them without needing to deal with a web server and the page navigation in a full web application.

Thankfully, he's found a nice, simple method for running tests against the Smarty engine (and includes that in the post - an interface to Smarty and the example test case to run against it).

0 comments voice your opinion now!
smarty unittest simpletest template fail isolation interface


blog comments powered by Disqus

Similar Posts

Ask About PHP Blog: Google Analytics API class for PHP

Volker Dusch's Blog: Mandatory "Template Engines (Twig) vs Plain Old PHP" Post

Matthias Noback: A better PHP testing experience Part II: Pick your test doubles wisely

Eli White's Blog: In Response to Fabien Potencier: Twig & PHP Templating

Jared White's Blog: Willowgarden Highlight: Template Modes


Community Events





Don't see your event here?
Let us know!


api voicesoftheelephpant list laravel opinion community framework threedevsandamaybe interview release symfony configure unittest version series composer conference podcast language introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework