Permalink
Browse files

- Deprecate test database functionality.

  • Loading branch information...
1 parent 9c5237c commit 23bc40583a2daa6d5ea4734f5ae9cf8687146acf @sebastianbergmann committed Aug 4, 2009
Showing with 5 additions and 15 deletions.
  1. +0 −5 PHPUnit/Tests/TextUI/help.phpt
  2. +0 −5 PHPUnit/Tests/TextUI/help2.phpt
  3. +5 −5 PHPUnit/TextUI/Command.php
@@ -19,11 +19,6 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
--coverage-clover <file> Write code coverage data in Clover XML format.
--coverage-source <dir> Write code coverage / source data in XML format.
- --test-db-dsn <dsn> DSN for the test database.
- --test-db-log-rev <rev> Revision information for database logging.
- --test-db-prefix ... Prefix that should be stripped from filenames.
- --test-db-log-info ... Additional information for database logging.
-
--story-html <file> Write Story/BDD results in HTML format to file.
--story-text <file> Write Story/BDD results in Text format to file.
@@ -22,11 +22,6 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
--coverage-clover <file> Write code coverage data in Clover XML format.
--coverage-source <dir> Write code coverage / source data in XML format.
- --test-db-dsn <dsn> DSN for the test database.
- --test-db-log-rev <rev> Revision information for database logging.
- --test-db-prefix ... Prefix that should be stripped from filenames.
- --test-db-log-info ... Additional information for database logging.
-
--story-html <file> Write Story/BDD results in HTML format to file.
--story-text <file> Write Story/BDD results in Text format to file.
View
@@ -498,6 +498,11 @@ protected function handleArguments(array $argv)
break;
case '--test-db-dsn': {
+ $this->showMessage(
+ 'The test database functionality is deprecated and will be removed in the future.',
+ FALSE
+ );
+
if (extension_loaded('pdo')) {
$this->arguments['testDatabaseDSN'] = $option[1];
} else {
@@ -900,11 +905,6 @@ protected function showHelp()
--coverage-clover <file> Write code coverage data in Clover XML format.
--coverage-source <dir> Write code coverage / source data in XML format.
- --test-db-dsn <dsn> DSN for the test database.
- --test-db-log-rev <rev> Revision information for database logging.
- --test-db-prefix ... Prefix that should be stripped from filenames.
- --test-db-log-info ... Additional information for database logging.
-
--story-html <file> Write Story/BDD results in HTML format to file.
--story-text <file> Write Story/BDD results in Text format to file.

0 comments on commit 23bc405

Please sign in to comment.