12-22-2020, 04:55 PM
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
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