[TYPO3-dev] PHPunit - Problem with cwd

Stefan Geith typo3dev2010.nospam1 at geithware.de
Tue Apr 27 15:00:18 CEST 2010


Hi All,

I have just written a test that uses cobj->IMAGE
and it seems, that the 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.


This failed in PHPunit V 3.4.3.
Then i chacked the SVN-trunk version out:
Same Problem.

Is this a known issue ?
I could not find an issue on forge, that addresses this issue.


/STefan




More information about the TYPO3-dev mailing list