Class: atkTestTraverser
Source Location: /test/class.atktesttraverser.inc
Class atkTestTraverser
Method Summary
| void |
addTestsByTraversing() |
Starts the process of searching and adding tests The main public method. |
Methods
Traverses through a structure in search of testcases.
Leaves checking of files and adding of testcases to visitor.
Parameters:
void addTestsByTraversing(
[unknown_type
$module = ""]
)
|
|
Starts the process of searching and adding tests The main public method.
Parameters:
string _getDirectoryForModule(
string
$module
)
|
|
Gets the directory (to traverse) for a module.
Knows the special modules 'atk' and 'all'
Parameters:
void _traverse(
$traverser, [
$dir = '.'], [
$extramods = true]
)
|
|
Parameters:
|
|
$traverser: |
|
|
|
$dir: |
|
|
|
$extramods: |
|
void _traverseExtraModules(
&$traverser, object
$traverser
)
|
|
Traverse modules that are outside the root
Here we actually change directories to all the module directories then check if the directory is inside the application root. If it is, we leave it alone, otherwise we traverse that too.
Parameters:
|
object |
$traverser: |
Object of the Traverser |
|
|
&$traverser: |
|