News Feed
Jobs Feed
Sections




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

Michael Nitschinger's Blog:
Understanding the Lithium Router - Part 2
February 25, 2011 @ 08:40:41

In his latest post Michael Nitschinger extends his first look at the Lithium framework's routing system with part two of his series - creating some unit and integration tests to help you understand how the various parts work.

Routes play an essential role in your request/response-cycle and therefore should also be tested like any other component that you develop. As the Lithium routing infrastructure also consists of classes and methods, we can run unit and integration tests against them.

Some of the tests include checking for basic request to controller mapping, testing with an ID in the request, using the export() method and testing various routing to ensure that the output is correct (the integration tests).

0 comments voice your opinion now!
lithium router framework introduction unittest integrationtest


blog comments powered by Disqus

Similar Posts

Nay Pryce's Blog: "Dependency Injection" Considered Harmful

Alex Netkachov's Blog: Zend, Prado, ASP.NET. Which framework is the best?

Jacob Santos' Blog: Zend Framework: Hackish Include Path Solution

Felix Geisendorfer's Blog: Validating the cleaned output of HtmlHelper::dateTimeOptionTag()

IBM developerWorks: Introduction to MVC programming with Agavi, Part 3: Add authentication and admin


Community Events











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


component introduction package facebook podcast code language hhvm unittest install composer hack threedevsandamaybe framework symfony2 release opinion overview application security

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