Project

General

Profile

Actions

Feature #23956

closed

Add functions to provide mocks for makeInstance

Added by Oliver Klee about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-05
Due date:
% Done:

0%

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

Description

This will make unit-testing a lot less of a hassle.

In addition, we should have a function to make makeInstance drop all stored singletons.

(issue imported from #M16267)


Files

16267.diff (14.2 KB) 16267.diff Administrator Admin, 2010-11-05 16:51
16267-v2.diff (12.5 KB) 16267-v2.diff Administrator Admin, 2010-11-26 09:48

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #24190: Add unit tests for t3lib_div::makeInstanceClosedSteffen Kamper2010-11-24

Actions
Actions #1

Updated by Oliver Klee about 14 years ago

In addition, this patch adds some unit tests for the already existing functionality of makeInstance.

Actions #2

Updated by Oliver Klee about 14 years ago

The patch also adds an exception if makeInstance is called with an empty class name

Actions #3

Updated by Steffen Kamper almost 14 years ago

Committed to trunk 9744

Actions #4

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF