[TYPO3-core] RFC #14264: cObj + PHPunit - Problem with cwd

Susanne Moog info at susannemoog.de
Thu May 6 18:13:24 CEST 2010


Hi,

I'm sorry, but I don't get the problem / your solution. In your testcase
you compare $imgRes to $result[3] (which obviously can't work before
applying your second patch as there is no $result[3]):

On 03.05.2010 10:10, Stefan Geith wrote:
> +		$imgRes = 'typo3/sysext/cms/ext_icon.gif';
> +		$result = $this->cObj->getImgResource($imgRes, NULL);
> +		$this->assertEquals($imgRes, $result[3]);


It is working after applying the second patch but just because you set
it to the same value as origFile:

> +			$info[3] = $theImage;
>  			$info['origFile'] = $theImage;

So why not compare against 'origFile' in the first place? And where /
what is the bug?

Best regards,

Susanne


More information about the TYPO3-team-core mailing list