Welcome Guest, Not a member yet? Register   Sign In
ci-phpunit-test for CodeIgniter 3.0
#96

My pleasure.

You don't have to test abstract classes. Test your concrete classes.
The behavior of an abstract class could test via testing a concrete class which inherits it.

If you really want to test abstract classes, you could use PHPUnit getMockForAbstractClass().
https://phpunit.readthedocs.io/en/8.5/te...ct-classes
Reply


Messages In This Thread
ci-phpunit-test for CodeIgniter 3.0 - by kenjis - 05-09-2015, 11:33 PM
RE: ci-phpunit-test for CodeIgniter 3.0 - by kenjis - 12-22-2020, 04:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB