CodeIgniter Forums

Full Version: What do you need for better application testing?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Since we're in the middle of rewriting CI for version 4, and obviously testing the code as we go along, I got to wondering what everyone is expecting to make testing their applications easier.

I've seen it brought up on the forums before, but it seems like the big thing that I always heard was "Mocked system classes". I guess I'm not thinking clearly on this because you can already Mock classes with phpUnit:

$stub = $this->getMockBuilder('SomeClass')

So, what would everyone need to be able to cleanly test their applications. (Other than someone to write all of the tests for them....)
My requests for CI3:

But I think CI4 will solve all the problems I pointed out.
I want mocked Session (driver?) for testing.
Now I use MY_Session:

And mocked Email might be useful, too.
We can't test set_cookie() in controller functional testing on  CI3.