[TYPO3-core] RFC: #14405: Rename the test cases from *_testcase to *Test

Stefano Kowalke blueduck at gmx.net
Tue Jun 8 14:31:15 CEST 2010


Am 08.06.10 12:42, schrieb Steffen Kamper:
> Hi,
> 
> patch looks good, though i can't apply this on windows, don't see why.
> 
> vg Steffen

I made a new patch. This time with 'svn rename' instead of a simple 'mv'.


If he doesn't apply, you could make it in two steps:


1) rename the files

Put this script in a file inside the tests folder, make it executable
and run it.

#! /bin/bash

for i in $(find ./ -name "*_testcase.php");
do svn rename "$i" "${i/_testcase.php}"Test.php;
done
for i in $(find ./ -name "*testcase.php");
do svn rename "$i" "${i/testcase.php}"Test.php;
done

2) rename the classes inside the files:

I did it with search and replace in Netbeans.
You have to search for _testcase and TestCase and replace it with Test
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14405_v3.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100608/9e039713/attachment-0001.txt>


More information about the TYPO3-team-core mailing list