Welcome Guest, Not a member yet? Register   Sign In
What do you need for better application testing?
#1

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:

Code:
$stub = $this->getMockBuilder('SomeClass')
                     ->getMock();

So, what would everyone need to be able to cleanly test their applications. (Other than someone to write all of the tests for them....)
Reply
#2

My requests for CI3: https://github.com/kenjis/ci-phpunit-tes...Igniter.md

But I think CI4 will solve all the problems I pointed out.
Reply
#3

I want mocked Session (driver?) for testing.
Now I use MY_Session:
https://github.com/kenjis/ci-phpunit-tes...ession.php

And mocked Email might be useful, too.
Reply
#4

We can't test set_cookie() in controller functional testing on  CI3.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB