Welcome Guest, Not a member yet? Register   Sign In
Controller Testing
#1

[eluser]Unknown[/eluser]
Hi,

I am currently trying to implement unit testing (phpunit) for the Controllers of my application written in CI. In my controllers, session variables are initialized and checked for the logged-in user. Is there a way I can initialize session variable from the command line or test case, and write test cases to test Controllers.

Also, some of my Controllers, after successful execution, are loading views and returning no data. Is there any way to check (in the test cases) if correct view is loaded after feeding correct input to the Controller.


Messages In This Thread
Controller Testing - by El Forum - 02-21-2009, 01:34 AM
Controller Testing - by El Forum - 02-21-2009, 05:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB