Task #43145
closedIntegrate possibility to call inaccessible methods in BaseTestCase
100%
Description
The BaseTestCase already has a possibility to create full blown accessible object proxies.
However if one does not want to have the class stack cluttered with temporary existing classes, there shall be a possibility to directly invoke protected/private methods of a fixture object.
The new method callInaccessibleMethod method is taken and rewritten from ModuleControllerTest.
Example to use it in unit tests:
$this->fixture = new \TYPO3\CMS\Core\SomeClassName();
$result = $this->callInaccessibleMethod($this->fixture, 'privateMethod', $first, $second, $third, ...);
Updated by Gerrit Code Review almost 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16598
Updated by Gerrit Code Review almost 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16598
Updated by Oliver Hader almost 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b92539c57369d8e70ee6a1634286091223f9be34.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed