title: Codeigniter 3.0 phpunit testing not working
body: <p>I tried to add phpunit testing code to my already built up site using <a href="http://blog.a-way-out.net/blog/2015/06/12/codeigniter3-phpunit/" rel="nofollow">http://blog.a-way-out.net/blog/2015/06/12/codeigniter3-phpunit/</a>
  but its throw error:</p>
  
  <pre><code>1) Homemodel_test::test_When_you_get_all_news_Then_you_get_one_item
  LogicException: CodeIgniter instance is not instantiated yet. You can't use `$th
  is-&gt;simple_cache` at the moment. Please fix your test code.
  E:\xampp\htdocs\CodeIgniter\application\tests\_ci_phpunit_test\CIPHPUnitTestNull
  CodeIgniter.php:18
  E:\xampp\htdocs\CodeIgniter\application\helpers\language_helper.php:10
  E:\xampp\htdocs\CodeIgniter\application\core\ROCKERS_Controller.php:51
  E:\xampp\htdocs\CodeIgniter\application\controllers\Home.php:51
  E:\xampp\htdocs\CodeIgniter\application\tests\_ci_phpunit_test\CIPHPUnitTestRequ
  est.php:292
  E:\xampp\htdocs\CodeIgniter\application\tests\_ci_phpunit_test\CIPHPUnitTestRequ
  est.php:215
  E:\xampp\htdocs\CodeIgniter\application\tests\_ci_phpunit_test\CIPHPUnitTestRequ
  est.php:126
  E:\xampp\htdocs\CodeIgniter\application\tests\_ci_phpunit_test\CIPHPUnitTestCase
  .php:106
  E:\xampp\htdocs\CodeIgniter\application\tests\models\home_model_test.php:25
  FAILURES!
  </code></pre>