[TYPO3-core] RFC #14176: unit test for RemoveXSS triggers fatal error in phpunit extension

Jigal van Hemert jigal at xs4all.nl
Thu Apr 22 08:51:18 CEST 2010


This is SVN patch request.

Type: bug

Bugtracker references: http://bugs.typo3.org/view.php?id=14176

Branches: trunk

Problem:
------------
In tests/contrib/removexss_testcase.php the RemoveXSS class file is 
included by using require(). When used with the phpunit extension this 
triggers a fatal error that the class cannot be redefined.

Solution:
------------
The attached patch solves the issue in the following way:
- use require_once() instead of require()

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14176_trunk.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100422/b8087796/attachment.txt>


More information about the TYPO3-team-core mailing list