How to integrate PHPUnit with php pro custom php framework

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
smmandar
Forum Newbie
Posts: 1
Joined: Mon Dec 06, 2010 7:09 am

How to integrate PHPUnit with php pro custom php framework

Post 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 ?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

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

Post 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.
Post Reply