• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with Unit Testing - HTTP Feature Testing - CI4

#5
(02-08-2019, 10:35 AM)ciadmin Wrote: Ah - I see the contradiction. I think the testing writeup is incorrect. The tests/ folder just isolates test code from "real" code. I will experiment, & adjust the docs if needed.

My expectation would be:

  <? php namespace App;
  class MyAppTest extends \CIUnitTestCase {...}

After debug the code I got the core of the error. For some reason class_exists not found 'App\Controllers\\Home' because of the first backslash in the namespace (App\Controllers) should be escaped as the second one (Controllers\\Home). So, the controller is not found.
Is there some config that I'm forgetting to to set or what could be the problem with that behaviour?

   
Reply


Messages In This Thread
RE: Problems with Unit Testing - HTTP Feature Testing - CI4 - by CiUser - 02-15-2019, 08:30 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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