Project

General

Profile

Actions

Bug #22556

closed

cObj + PHPunit - Problem with cwd

Added by Stefan Geith over 14 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-04-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Test that uses cobj->IMAGE fail in PHPunit, because working-directory is wrong.

I've defined an image with
file = EXT:plugin/img/demo.gif

When testing with PHPunit, then cObj->IMAGE tries
to read
/www/typo3/typo3/extplugin/img/demo.gif
and getcwd() is
/www/typo3/

While it should try to read
/www/typo3/extplugin/img/demo.gif
and getcwd() should be
/www/
as it is, when calling the the plugin from FE.

(issue imported from #M14264)


Files

Actions

Also available in: Atom PDF