[TYPO3-core] RFC #10411: sqlparser is not able to parse more than 1 join

Oliver Klee typo3-german-02 at oliverklee.de
Mon Oct 26 12:58:48 CET 2009


Hi,

Oliver Klee schrieb:
> For protected functions that are intended to be used in subclasses, I
> strongly recommend to write unit tests. You can test those functions by
> creating a subclass (either a real class or using eval) that has public
> functions that redirect to the protected functions of the same name in
> the parent class.

Like this:

	public function setUp() {
		$className = uniqid('t3lib_stdGraphic');
		eval(
			'class ' . $className . ' extends t3lib_stdGraphic {' .
			'public function wrapFileName($inputName) {' .
			'return parent::wrapFileName($inputName);' .
			'}' .
			'}'
		);

		$this->fixture = new $className();



Oli


More information about the TYPO3-team-core mailing list