|
| $allTestables = array() |
|
| $allTestablesAreCached = FALSE |
|
| $extensionSettingsService = NULL |
|
|
static | $allowedTestDirectoryNames = array('Tests/', 'tests/') |
|
static | $dummyExtensionKeys = array('aaa', 'bbb', 'ccc', 'ddd') |
|
Tx_Phpunit_Service_TestFinder::__destruct |
( |
| ) |
|
Tx_Phpunit_Service_TestFinder::existsTestableForAnything |
( |
| ) |
|
Checks whether there is at least one tests directory in at least one extension or in the TYPO3 Core.
- Returns
- bool TRUE if there ist at least one test directory, FALSE otherwise
Tx_Phpunit_Service_TestFinder::existsTestableForKey |
( |
|
$key | ) |
|
Checks whether there is testable code for a key.
- Parameters
-
string | $key | the key to check, might be an extension key, the core key or any other string (even an empty string) |
- Returns
- bool TRUE if there is testable code with the given key, FALSE otherwise
Tx_Phpunit_Service_TestFinder::findTestsPathForExtension |
( |
|
$extensionKey | ) |
|
|
protected |
Finds the absolute path to the tests of the extension with the key $extensionKey.
- Parameters
-
string | $extensionKey | the key of an installed extension, must not be empty |
- Returns
- string the absolute path of the tests directory of the given extension (might differ in case from the actual tests directory on case-insensitive file systems)
- Exceptions
-
Tx_Phpunit_Service_TestFinder::getDummyExtensionKeys |
( |
| ) |
|
Returns the keys of the extensions excluded from unit testing because they are the dummy extensions of phpunit.
- Returns
- string[] the keys of the dummy extensions, will not be empty
Tx_Phpunit_Service_TestFinder::getExcludedExtensionKeys |
( |
| ) |
|
|
protected |
Returns the keys of the extensions excluded from unit testing via the phpunit configuration.
- Returns
- string[] the keys of the excluded extensions, might be empty
Tx_Phpunit_Service_TestFinder::getLoadedExtensionKeys |
( |
| ) |
|
|
protected |
Returns the keys of the loaded extensions.
- Returns
- string[] the keys of the loaded extensions, might be empty
Tx_Phpunit_Service_TestFinder::getTestableForKey |
( |
|
$key | ) |
|
Returns the testable code for the given key.
- Parameters
-
string | $key | the key for which to get the testable, must an extension key or the core key, must not be empty |
- Returns
- Tx_Phpunit_Testable the testable for the given key
- Exceptions
-
InvalidArgumentException | |
BadMethodCallException | |
Tx_Phpunit_Service_TestFinder::getTestablesForEverything |
( |
| ) |
|
Returns the testable code instance for everything, i.e., the core and all installed extensions.
- Returns
- Tx_Phpunit_Testable[] testable code for everything using the extension keys or the core key as array keys, might be empty
Tx_Phpunit_Service_TestFinder::getTestablesForExtensions |
( |
| ) |
|
Returns the testable code for all installed extensions, sorted in alphabetical order by extension name.
Extensions without a test directory and extensions in the "exclude list" will be skipped.
- Returns
- Tx_Phpunit_Testable[] testable code for the installed extensions using the extension keys as array keys, might be empty
Injects the extension settings service.
- Parameters
-
- Returns
- void
Callback function for comparing the keys of $testable1 and $testable2.
- Parameters
-
- Returns
- int 1 if both items need to be swapped, 0 if they have the same key, and -1 if the order is okay.
The documentation for this class was generated from the following file:
- Classes/Service/TestFinder.php