[TYPO3-dev] unit test extension
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Mon Mar 13 13:59:50 CET 2006
Robert Lemke schrieb:
> Hi Elmar,
>
> Elmar Hinz wrote:
>
>
>>Wasn't it: "Publish early, publish often." for opensource, Robert?
>
>
> Yes, but it also was "don't publish without documentation".
> I just added a few-lines-doc and uploaded it to the TER.
>
> robert
>
Maybe replace:
In order to create a unit test, you need to create a directory “tests”
in your extension directory and add some php files containing a class
with functions whose names are prefixed with “test_”
With:
In order to create a unit test, you need to create a directory “tests”
in your extension directory and add some php files containing a class
that ends with "_testcase.php" with functions whose names are prefixed
with “test_”
Reason:
private function traversePathForTestCases($path) {
[...]
foreach ($fileNamesArr as $fileName) {
if (substr ($fileName, -12, 12) == 'testcase.php') {
$testCaseFileNames[] = $fileName;
}
}
[...]
http://typo3.org/extensions/repository/search/t3unit/0.0.2/details/mod1%252Findex.php/
Regards
Elmar
More information about the TYPO3-dev
mailing list