Page 1 of 1

How to integrate PHPUnit with php pro custom php framework

Posted: Mon Dec 06, 2010 7:14 am
by smmandar
Hello,

How to integrate PHPUnit with php pro custom php framework?

http://www.phpro.org/tutorials/Model-Vi ... r-MVC.html

Does it matters if change our framework ?

Re: How to integrate PHPUnit with php pro custom php framewo

Posted: Tue Dec 07, 2010 3:09 pm
by josh
Answer: You don't "integrate"

There is the model, view & controller. The view/controller depend on the framework
The model should just be plain objects you write that "do work".

You unit test the model, not the view or controller.

The view/controller are "presentation" and are tested with a tool like Selenium.