• 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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