diff options
author | tailor <cygnus@janrain.com> | 2006-01-04 17:37:41 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-01-04 17:37:41 +0000 |
commit | 5c93ca1bcf7c66fffed5e46eef112e2b78b2d8a4 (patch) | |
tree | d4133612c4b35af56d2599691ac449ca5a43dc8e /Tests/TestDriver.php | |
parent | a9c79d8873a06ab7c0dc68c0a9181e5eea948aae (diff) | |
download | php-openid-5c93ca1bcf7c66fffed5e46eef112e2b78b2d8a4.zip php-openid-5c93ca1bcf7c66fffed5e46eef112e2b78b2d8a4.tar.gz php-openid-5c93ca1bcf7c66fffed5e46eef112e2b78b2d8a4.tar.bz2 |
[project @ Fixed docs and added StoreTest implementation and FileStore test]
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; |