Welcome Guest, Not a member yet? Register   Sign In
Unit testing issue
#1

I'm exploring unit testing with CI4 and have run into a problem. I can test controllers without problem but any attempt to test a model or the database throws an 'headers already sent by (output started at /var/vendor/phpunit/phpunit/src/Util/Printer.php'.

I've done some digging and nothing I've found online seems applicable. I'm using the \CIDatabaseTestCase as descrideb in https://codeigniter4.github.io/userguide...abase.html, and nothing seems to be working. Any ideas?
Reply


Messages In This Thread
Unit testing issue - by maxxd - 01-27-2020, 10:41 AM
RE: Unit testing issue - by maxxd - 01-28-2020, 08:27 AM
RE: Unit testing issue - by hatsat32 - 01-28-2020, 10:02 AM
RE: Unit testing issue - by MGatner - 01-29-2020, 06:02 PM
RE: Unit testing issue - by maxxd - 01-29-2020, 07:51 PM
RE: Unit testing issue - by hatsat32 - 01-31-2020, 09:51 AM
RE: Unit testing issue - by maxxd - 02-09-2020, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB