|
Previous Class |
Solar_Cli_MakeTests |
Next Page |
Solar_Cli_MakeTests
Command to make a test class (or set of classes) from a given class.
The class should be in the include_path.
Synopsis
**solar make-tests** [options] CLASS
Options
--config FILE- Path to the Solar.config.php file. Default false.
--target _arg_- Directory where the test classes should be written to. Default is the current working directory.
--only- Make only the test for the given class, do not recurse into subdirectories.
Examples
Make test files for a class and its subdirectories.
$ cd /path/to/tests/
$ solar make-tests Vendor_Example
Make "remotely":
$ solar make-tests --dir /path/to/tests Vendor_Example
Make only the Vendor_Example test (no subdirectories):
$ solar make-tests --only Vendor_Example
Catalog
This class is part of the Solar_Cli package.
Inheritance:
- Solar_Base
- Solar_Controller_Command
- Solar_Cli_Base
- Solar_Cli_MakeTests
- Solar_Cli_Base
- Solar_Controller_Command
Constants
None.
Public Properties
The Solar_Cli_MakeTests class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Cli_MakeTests class.
You can also view the list of all public, protected, and private methods.
__construct()- Constructor.
__destruct()- Destructor; closes STDOUT and STDERR file handles.
apiVersion()- Reports the API version for this class.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
exec()- Public interface to execute the command.
getInfoHelp()- Returns the help text for this command.
getInfoOptions()- Returns an array of option flags and descriptions for this command.
locale()- Looks up class-specific locale strings based on a key.
setConsoleController()- Injects the console-controller object (if any) that invoked this command.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _addTestMethods()
- _err()
- _errln()
- _exception()
- _exec()
- _getOptionSettings()
- _loadTemplates()
- _out()
- _outln()
- _postExec()
- _preExec()
- _setFile()
- _setTarget()
- _setup()
- _vt100()
- apiVersion()
- dump()
- exec()
- getInfoHelp()
- getInfoOptions()
- locale()
- setConsoleController()