Project

General

Profile

Actions

Feature #72062

closed

Mocking of concrete methods in abstract classes

Added by Stefan Rotsch almost 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2015-12-04
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Task #69019: Allow to mock concrete methods of abstracts classes when mocking abstract class using @getAccessibleMockForAbstractClass@.Closed2015-08-13

Actions
Actions

Also available in: Atom PDF