• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing with CIUnit

#1
[eluser]dsloan[/eluser]
I was investigating PHPUnit and having problems getting it working within the CI framework when I found this thread on CI Unit. Looks very interesting.

My first problem though is when attempting to run a test on my application (just a very simple assertTrue test for starters) I am getting a "call to a member function on a non-object" error. The object in question ($this->phpsession) is created automatically via the $autoload['libraries'] array when running via a browser but doesn't seem to be instantiated when running via the command line.

I tried loading it manually using $this->CI->load->library('phpsession') in the test case but to no avail.

Any ideas?


Messages In This Thread
Testing with CIUnit - by El Forum - 08-08-2008, 02:13 AM
Testing with CIUnit - by El Forum - 08-08-2008, 07:44 AM
Testing with CIUnit - by El Forum - 08-31-2008, 11:00 AM
Testing with CIUnit - by El Forum - 02-09-2009, 05:32 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.