Welcome Guest, Not a member yet? Register   Sign In
Problems with Unit Testing - HTTP Feature Testing - CI4
#5

(This post was last modified: 02-15-2019, 08:31 AM by CiUser.)

(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



Theme © iAndrew 2016 - Forum software by © MyBB