CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

Fix tests with phpunit10

Open tenzap opened this issue 2 years ago • 2 comments

This will fix the errors, warning & deprecations when testing with phpunit10 Pick whatever you may find relevant and a correct fix.

It is assumed this is run with phpunit 10.2 & php 8.2 (and that the php8.2 fixes of #6173 are already applied.

Might close #6219

tenzap avatar Jun 19 '23 18:06 tenzap

All commits except one work also when run on phpunit9. The one that doesn't work with phpunit9 is the one changing for assertObjectHasProperty

tenzap avatar Jun 20 '23 16:06 tenzap

All commits except one work also when run on phpunit9. The one that doesn't work with phpunit9 is the one changing for assertObjectHasProperty

Commit updated, it should now run on older phpunit versions too.

tenzap avatar Jun 21 '23 05:06 tenzap