Welcome Guest, Not a member yet? Register   Sign In
ci-phpunit-test for CodeIgniter 3.0
#35

(10-12-2015, 06:29 AM)nighthawk Wrote: This is great software with great documentation, however I still have one issue.

I don't know how to set private properties in my controllers. Several of my controllers have methods whose functionality depends on protected arrays set in core/My_Controller. I want to write tests which will be able to set this private properties. Is this possible and how to do it?

I'm using Codeigniter 3.0.0, PHPUnit 5.0.5 and CI PHPUnit Test 0.8.2

Thanks in advance

P.S I'm new to this forum and I hope this is the right place for this question.
Welcome to the forum. You're in the right place.

ci-phpunit-test has a helper method for it:
https://github.com/kenjis/ci-phpunit-tes...erty-value
Reply


Messages In This Thread
ci-phpunit-test for CodeIgniter 3.0 - by kenjis - 05-09-2015, 11:33 PM
RE: CI PHPUnit Test for CodeIgniter 3.0 - by kenjis - 10-12-2015, 09:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB