[TYPO3-dev] PHPunit - Problem with cwd

Stefan Geith typo3dev2010.nospam1 at geithware.de
Tue Apr 27 16:06:57 CEST 2010


Hi Oliver,

Oliver Klee schrieb:
[...]
> The problem is that the image functions expect to be called from the FE
> index.php as they use relative file paths in
> 
>   tslib_gifBuilder::getImageDimensions (inherited from t3lib_stdGraphic)
> 
> This can be fixed by appending some of the available path constants here
> and there. So this needs to be fixed in the core (so that the image
> functions work both in the "real" FE as well as called from the unit tests).
> 
> So far, I've haven't invested the work to track this down. Would you
> like to fix this and provide an RFC for this? That would be awesome!

First I did a testcase for this issue.
Please could you look at the attached patch, that adds the testcase ?

> Oli
> 
> BTW: I've just released phpunit 3.4.12. It doesn't fix this particular
> issue, but still has some important bugfixes. :-)

Had just tested this...

/Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: doesGetImgResourceReturnRightValue.patch
URL: <http://lists.typo3.org/pipermail/typo3-dev/attachments/20100427/6fd8ecba/attachment.asc>


More information about the TYPO3-dev mailing list