TestSuiteShell Class Reference

Inheritance diagram for TestSuiteShell:

Shell Object List of all members.

Public Member Functions

 __canRun ()
 __findFolderByCategory ($category)
 __installSimpleTest ()
 __run ()
 __setGetVars ()
 help ()
 initialize ()
 main ()

Public Attributes

 $category = ''
 $doCoverage = false
 $file = ''
 $headline = 'CakePHP Test Shell'
 $isPluginTest = false
 $plugins = array()
 $type = ''

Detailed Description

Definition at line 27 of file testsuite.php.


Member Function Documentation

TestSuiteShell::__canRun (  ) 

Checks if the arguments supplied point to a valid test file and thus the shell can be run.

Returns:
bool true if it's a valid test file, false otherwise private

Definition at line 193 of file testsuite.php.

References __findFolderByCategory(), a(), Shell::err(), group(), groups, name(), and underscore().

Referenced by main().

TestSuiteShell::__findFolderByCategory ( category  ) 

Finds the correct folder to look for tests for based on the input category

Returns:
string the folder path private

Definition at line 307 of file testsuite.php.

References $category, $path, Configure::read(), and underscore().

Referenced by __canRun().

TestSuiteShell::__installSimpleTest (  ) 

tries to install simpletest and exits gracefully if it is not there

Returns:
void private

Definition at line 353 of file testsuite.php.

References Shell::err(), and App::import().

Referenced by initialize().

TestSuiteShell::__run (  ) 

Executes the tests depending on our settings

Returns:
void private

Definition at line 246 of file testsuite.php.

References $path, __setGetVars(), group(), groups, Shell::out(), and start().

Referenced by main().

TestSuiteShell::__setGetVars (  ) 

Sets some get vars needed for TestManager

Returns:
void private

Definition at line 335 of file testsuite.php.

References group().

Referenced by __run().

TestSuiteShell::help (  ) 

Help screen

Returns:
void public

Reimplemented from Shell.

Definition at line 156 of file testsuite.php.

References Shell::out().

TestSuiteShell::initialize (  ) 

Initialization method installs Simpletest and loads all plugins

Returns:
void public

Reimplemented from Shell.

Definition at line 83 of file testsuite.php.

References $plugins, __installSimpleTest(), Configure::corePaths(), Configure::listObjects(), and underscore().

TestSuiteShell::main (  ) 

Main entry point to this shell

Returns:
void public

Definition at line 107 of file testsuite.php.

References __canRun(), __run(), Shell::err(), Shell::hr(), Shell::out(), and underscore().


Member Data Documentation

TestSuiteShell::$category = ''

Definition at line 34 of file testsuite.php.

Referenced by __findFolderByCategory().

TestSuiteShell::$doCoverage = false

Definition at line 69 of file testsuite.php.

TestSuiteShell::$file = ''

Definition at line 48 of file testsuite.php.

TestSuiteShell::$headline = 'CakePHP Test Shell'

Definition at line 76 of file testsuite.php.

TestSuiteShell::$isPluginTest = false

Definition at line 62 of file testsuite.php.

TestSuiteShell::$plugins = array()

Definition at line 55 of file testsuite.php.

Referenced by initialize().

TestSuiteShell::$type = ''

Definition at line 41 of file testsuite.php.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 00:30:57 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7