Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Michael Nitschinger’s Blog: Understanding the Lithium Router – Part 2

Michael Nitschinger’s Blog: Understanding the Lithium Router – Part 2

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).

Source: http://www.phpdeveloper.org/news/15961

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Posted Luty 26th, 2011 in WEB and PHP Development.

Leave a response: