Class CakeTestLoader
TestLoader for CakePHP Test suite.
Turns partial paths used on the testsuite console and web UI into full file paths.
- PHPUnit_Runner_StandardTestSuiteLoader
- CakeTestLoader
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/TestSuite/CakeTestLoader.php
Method Summary
-
_basePath() protected static
Generates the base path to a set of tests based on the parameters. -
_getRecursiveFileList() protected static
Gets a recursive list of files from a given directory and matches then against a given fileTestFunction, like isTestCaseFile()
-
_resolveTestFile() protected
Convert path fragments used by Cake's test runner to absolute paths that can be fed to PHPUnit. -
generateTestList() public static
Get the list of files for the test listing. -
load() public
Load a file and find the first test case / suite in that file.
Method Detail
_basePath() protected static ¶
_basePath( array $params )
Generates the base path to a set of tests based on the parameters.
Parameters
- array $params
Returns
The base path.
_getRecursiveFileList() protected static ¶
_getRecursiveFileList( string $directory = '.' , mixed $fileTestFunction ,… )
Gets a recursive list of files from a given directory and matches then against a given fileTestFunction, like isTestCaseFile()
Parameters
- string $directory optional '.'
- The directory to scan for files.
- mixed $fileTestFunction ,…
_resolveTestFile() protected ¶
_resolveTestFile( $filePath , $params )
Convert path fragments used by Cake's test runner to absolute paths that can be fed to PHPUnit.
generateTestList() public static ¶
generateTestList( $params )
Get the list of files for the test listing.