diff options
Diffstat (limited to 'Tests/TestDriver.php')
-rw-r--r-- | Tests/TestDriver.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/Tests/TestDriver.php b/Tests/TestDriver.php index 067863b..a548f94 100644 --- a/Tests/TestDriver.php +++ b/Tests/TestDriver.php @@ -8,15 +8,17 @@ require_once('PHPUnit/GUI/HTML.php'); /** * Load the tests that are defined in the named modules. * - * @param test_dir: The root of the test hierarchy. Must end with a / + * If you have Tests/Foo.php which defines a test class called + * Tests_Foo, the call would look like: * - * @param test_names: The names of the modules in which the tests are - * defined. This should not include the root of the test hierarchy. + * loadTests('Tests/', array('Foo')) * - * If you have Tests/Foo.php which defines a test class called Tests_Foo, the - * call would look like: + * @param string $test_dir The root of the test hierarchy. Must end + * with a / * - * loadTests('Tests/', array('Foo')) + * @param array $test_names The names of the modules in which the + * tests are defined. This should not include the root of the test + * hierarchy. */ function loadTests($test_dir, $test_names) { $suites = array(); @@ -46,6 +48,13 @@ $_test_names = array( 'Association' ); +// Only run store tests if -s or --test-stores is specified on the +// command line because store backends will probably not be installed. +if (in_array('--test-stores', $argv) || + in_array('-s', $argv)) { + $_test_names[] = 'StoreTest'; +} + // Load OpenID library tests function loadSuite() { global $_test_names; |