From: Reini U. <ru...@us...> - 2005-10-29 13:33:26
|
Update of /cvsroot/phpwiki/phpwiki/tests/unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18685 Modified Files: test.php Log Message: use default comment style Index: test.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/tests/unit/test.php,v retrieving revision 1.40 retrieving revision 1.41 diff -u -2 -b -p -d -r1.40 -r1.41 --- test.php 12 Oct 2005 06:21:18 -0000 1.40 +++ test.php 29 Oct 2005 13:33:18 -0000 1.41 @@ -1,5 +1,5 @@ <?php // #!/usr/local/bin/php -Cq /* Copyright (C) 2004 Dan Frankowski <dfr...@cs...> - * Copyright (C) 2004 Reini Urban <ru...@x-...> + * Copyright (C) 2004,2005 Reini Urban <ru...@x-...> * * This file is part of PhpWiki. @@ -57,5 +57,5 @@ $cur_dir = getcwd(); -# Add root dir to the path +// Add root dir to the path if (substr(PHP_OS,0,3) == 'WIN') $cur_dir = str_replace("\\","/", $cur_dir); @@ -81,12 +81,12 @@ $database_backends = array( 'ADODB', // same backend as defined in the config.ini DSN // specific backends (need to be setup) - 'PearDB_pgsql', 'PearDB_sqlite', - //'PearDB_oci8', 'PearDB_mysql', + 'PearDB_pgsql', 'PearDB_sqlite', 'PearDB_mysql', + //'PearDB_oci8', //'PearDB_mssql', - 'ADODB_postgres7', 'ADODB_sqlite', - //'ADODB_oci8', 'ADODB_mysql', + 'ADODB_postgres7', 'ADODB_sqlite', 'ADODB_mysql', + //'ADODB_oci8', //'ADODB_mssql', - 'PDO_pqsql', 'PDO_sqlite', - //'PDO_oci', 'PDO_mysql', 'PDO_odbc', + 'PDO_pqsql', 'PDO_sqlite', 'PDO_mysql', + //'PDO_oci', 'PDO_odbc', ); //TODO: convert cvs test @@ -101,5 +101,5 @@ $database_prefix = "test_"; // For "cvs" see the seperate tests/unit_test_backend_cvs.php (cvs is experimental) -# Quiet warnings in IniConfig.php +// Quiet warnings in IniConfig.php $HTTP_SERVER_VARS['REMOTE_ADDR'] = '127.0.0.1'; $HTTP_SERVER_VARS['HTTP_USER_AGENT'] = "PHPUnit"; @@ -134,5 +134,5 @@ function printSimpleTrace($bt) { } */ -# Show lots of detail when an assert() in the code fails +// Show lots of detail when an assert() in the code fails function assert_callback( $script, $line, $message ) { echo "assert failed: script ", $script," line ", $line," :"; @@ -146,7 +146,7 @@ function assert_callback( $script, $line $foo = assert_options( ASSERT_CALLBACK, 'assert_callback'); -# -# Get error reporting to call back, too -# +// +// Get error reporting to call back, too +// // set the error reporting level for this script if (defined('E_STRICT') and (E_ALL & E_STRICT)) // strict php5? @@ -350,9 +350,9 @@ function updateLevelEdit(formObj) { } -#################################################################### -# -# End of preamble, run the test suite .. -# -#################################################################### +//#################################################################### +// +// End of preamble, run the test suite .. +// +//#################################################################### ob_start(); @@ -454,5 +454,5 @@ if (DEBUG & 8) define('PHPWIKI_NOMAIN', true); -# Other needed files +// Other needed files require_once $rootdir.'index.php'; require_once $rootdir.'lib/main.php'; @@ -479,5 +479,5 @@ if ($debug_level & 1) { global $ErrorManager; $ErrorManager->setPostponedErrorMask(EM_FATAL_ERRORS|EM_WARNING_ERRORS|EM_NOTICE_ERRORS); -//FIXME: ignore cached requests (if-modified-since) from cli +// FIXME: ignore cached requests (if-modified-since) from cli class MockRequest extends WikiRequest { function MockRequest(&$dbparams) { @@ -556,5 +556,5 @@ class phpwiki_TestCase extends PHPUnit_T } -# Test all db backends. +// Test all db backends. foreach ($run_database_backends as $dbtype) { // if (DEBUG & _DEBUG_TRACE) |