Welcome Guest, Not a member yet? Register   Sign In
testing redirect in controllers
#2

Well, I guess I found a temporary solution. The ci_phpunit-test framework throws an exception and causes phpunit to consider it as a risky test. What I did is I did not throw the exception and saved in the $_SERVER variable that the redirect function was called. I am a newbie and this is my first internship and I believe there are better solutions out there.
Reply


Messages In This Thread
testing redirect in controllers - by aaldhahe - 05-02-2017, 02:14 PM
RE: testing redirect in controllers - by aaldhahe - 05-11-2017, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB