Issue Feature Closed

#72062Mocking of concrete methods in abstract classes

Stefan Rotsch 12/04/15, 15:39 updated 10/02/18, 11:26

Description

TYPO3 allows unit testing of protected methods in abstract classes, PHPUnit allows mocking of concrete methods in abstract classes.

I stumbled upon a case where I needed the best of both worlds, so I’d like to extend BaseTestCase::getAccessibleMockForAbstractClass by an additional parameter for specifying which methods should be mocked.

Reviews 1