[TYPO3-core] RFC #9994: Bug: ereg_replace is deprecated in PHP 5.3 alpha3
Steffen Kamper
info at sk-typo3.de
Mon Dec 22 15:48:52 CET 2008
Hi,
Niels Pardon schrieb:
> Hi Steffen!
>
> Steffen Kamper schrieb:
>> good point to replace the ereg_replace. On the other hand it's dangerous
>> to change all the expresseions as this has to be tested well. Unit tests
>> would make life much easier :-)
>
> You're right! Is there already any concept concerning unit tests in the
> core? I guess for sysexts this should be already possible using tx_phpunit.
>
i have an idea. As unittests are not quickly installed for v4, we could
make following:
* add a folder "testcases" to typo3, which will not part of package
* add classes and unittests to this folder.
A start could be the replace-test. Adding a function for each
ereg_replace where either ereg or preg-method is used. So the statements
are easy to test.
This can also be used for more complexe reg. expression used in core.
It is some work but gives us the assurance that all will work as expected.
I also think that this could be a method for changes with workspaces,
building testcases and make sure that result is correct, maybe this
could also raise trust from Kasper to coreteam for workspaces-changes.
vg Steffen
More information about the TYPO3-team-core
mailing list