Class: atkTestCaseCollector
Source Location: /test/class.atktestcasecollector.inc
Class atkTestCaseCollector
Class Overview
|
atkTestCaseCollector is a visitor that can be passed to an atkDirecoryTraverser. It detects if a file is a suitable testcase and if so, adds it to the testsuite.
This class is used by the atkTestSuite. It should not be necessary to use this class directly.
Located in /test/class.atktestcasecollector.inc [line 30]
Wiki documentation
Author(s):
Information Tags:
|
Properties
|
Methods
|
Method Summary
| void |
addTestClass() |
Add a testclass to the tester to be tested. |
| bool |
isValidTestClass() |
Test wether a file is a valid class that we want to execute |
Properties
Test method specific tester
Methods
atkTestCaseCollector atkTestCaseCollector(
&$tester
)
|
|
Parameters:
void addTestClass(
string
$fullpath, string
$testclassname
)
|
|
Add a testclass to the tester to be tested.
Override per testmethod.
Parameters:
|
string |
$fullpath: |
Path of the testclass |
|
string |
$testclassname: |
|
API Tags:
Redefined in descendants as:
bool isValidTestClass(
string
$fullpath, string
$filename, string
$testclassname
)
|
|
Test wether a file is a valid class that we want to execute
Parameters:
|
string |
$fullpath: |
Path of the file (/dir/dir/file.ext) |
|
string |
$filename: |
The filename (file.ext) |
|
string |
$testclassname: |
The name of the class (test_sumthin) |
API Tags:
| Return: | Valid test class? |
Redefined in descendants as:
void visitFile(
$fullpath
)
|
|
Parameters:
bool _isTestCaseInDisabledModule(
string
$fullpath
)
|
|
Checks wether a testcase is in a disbled module or not
Parameters:
|
string |
$fullpath: |
The full path of the testcase |
Information Tags:
| Todo: | I decomposed this from atkTestSuite, but I doubt very much that it actually works and even if it does it is implemented in an ugly way and should be rewritten. |