summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-08-17 00:30:04 +0200
committerDamien Regad <dregad@mantisbt.org>2021-08-17 00:30:04 +0200
commit507466ef798b18a3a8830230cfcd51bb488513cf (patch)
tree8b6ddc09e077883e9b0567d9c3b1c5249884ea09 /tests
parent20b01e83cb61b6b2460f64c7d1277c5f4cc28574 (diff)
downloadadodb-507466ef798b18a3a8830230cfcd51bb488513cf.tar.gz
adodb-507466ef798b18a3a8830230cfcd51bb488513cf.tar.bz2
adodb-507466ef798b18a3a8830230cfcd51bb488513cf.zip
Revert changes since Standardized file headers merge
The conflicts resolution applied when merging the Standardized file headers (commit e9dcce3df24912ad869d0193f0b419f2309101fc) was seriously messed up, actually overwriting a number of changes in the master branch. Rather than trying to go and fix things one by one which has a high risk of messing things further, it's easier to redo the merge from a clean slate, so this commit reverts the following: - "Merge branch 'hotfix/5.21' Standardized file headers", e9dcce3df24912ad869d0193f0b419f2309101fc - "Merge tag 'v5.21.1'", 5f437df3104159d5d659f60e31bef8d33c34995f - "Reset version to 5.22.0-dev" af9234a525c3255af051a330164486d73be4c63a - "Fix incorrect resolution of merge conflicts" a6733f61b0165b366c8d2c70d9af82edc3881951. - "Fix syntax error in toexport.inc.php" 20b01e83cb61b6b2460f64c7d1277c5f4cc28574. Fixes #751
Diffstat (limited to 'tests')
-rw-r--r--tests/LibTest.php72
-rw-r--r--tests/benchmark.php39
-rw-r--r--tests/client.php27
-rw-r--r--tests/pdo.php19
-rw-r--r--tests/test-active-record.php19
-rw-r--r--tests/test-active-recs2.php20
-rw-r--r--tests/test-active-relations.php19
-rw-r--r--tests/test-active-relationsx.php20
-rw-r--r--tests/test-datadict.php31
-rw-r--r--tests/test-perf.php19
-rw-r--r--tests/test-pgblob.php19
-rw-r--r--tests/test-php5.php27
-rw-r--r--tests/test-xmlschema.php23
-rw-r--r--tests/test.php31
-rw-r--r--tests/test2.php21
-rw-r--r--tests/test3.php27
-rw-r--r--tests/test4.php24
-rw-r--r--tests/test5.php33
-rw-r--r--tests/test_mssqlnative.php19
-rw-r--r--tests/test_rs_array.php19
-rw-r--r--tests/testcache.php30
-rw-r--r--tests/testdatabases.inc.php34
-rw-r--r--tests/testgenid.php27
-rw-r--r--tests/testmssql.php24
-rw-r--r--tests/testoci8.php29
-rw-r--r--tests/testoci8cursor.php32
-rw-r--r--tests/testpaging.php30
-rw-r--r--tests/testpear.php30
-rw-r--r--tests/testsessions.php31
-rw-r--r--tests/time.php19
-rw-r--r--tests/tmssql.php19
31 files changed, 190 insertions, 643 deletions
diff --git a/tests/LibTest.php b/tests/LibTest.php
deleted file mode 100644
index 2f02e00e..00000000
--- a/tests/LibTest.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * Tests cases for adodb-lib.inc.php
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
-
-use PHPUnit\Framework\TestCase;
-
-require_once dirname(__FILE__) . '/../adodb.inc.php';
-require_once dirname(__FILE__) . '/../adodb-lib.inc.php';
-
-/**
- * Class LibTest.
- *
- * Test cases for adodb-lib.inc.php
- */
-class LibTest extends TestCase
-{
- /** @var ADOConnection Database connection for tests */
- private $db;
-
- public function setUp(): void
- {
- $this->db = ADONewConnection('mysqli');
- }
-
- /**
- * Test for {@see _adodb_quote_fieldname()}
- *
- * @dataProvider quoteProvider
- */
- public function testQuoteFieldNames($method, $field, $expected)
- {
- global $ADODB_QUOTE_FIELDNAMES;
- $ADODB_QUOTE_FIELDNAMES = $method;
- $this->assertSame($expected, _adodb_quote_fieldname($this->db, $field));
- }
-
- /**
- * Data provider for {@see testQuoteFieldNames()}
- * @return array
- */
- public function quoteProvider()
- {
- return [
- 'No quoting, single-word field name' => [false, 'Field', 'FIELD'],
- 'No quoting, field name with space' => [false, 'Field Name', '`FIELD NAME`'],
- 'Quoting `true`' => [true, 'Field', '`FIELD`'],
- 'Quoting `UPPER`' => ['UPPER', 'Field', '`FIELD`'],
- 'Quoting `LOWER`' => ['LOWER', 'Field', '`field`'],
- 'Quoting `NATIVE`' => ['NATIVE', 'Field', '`Field`'],
- 'Quoting `BRACKETS`' => ['BRACKETS', 'Field', '[FIELD]'],
- 'Unknown value defaults to UPPER' => ['XXX', 'Field', '`FIELD`'],
- ];
- }
-
-}
diff --git a/tests/benchmark.php b/tests/benchmark.php
index 5799031d..37251ce6 100644
--- a/tests/benchmark.php
+++ b/tests/benchmark.php
@@ -1,33 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+
<html>
<head>
- <title>ADODB Benchmarks</title>
+ <title>ADODB Benchmarks</title>
</head>
<body>
<?php
-/**
- * Benchmarking
- *
- * Benchmark code to test the speed to the ADODB library with different databases.
- * This is a simplistic benchmark to be used as the basis for further testing.
- * It should not be used as proof of the superiority of one database over the other.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+
+ Benchmark code to test the speed to the ADODB library with different databases.
+ This is a simplistic benchmark to be used as the basis for further testing.
+ It should not be used as proof of the superiority of one database over the other.
+*/
$testmssql = true;
//$testvfp = true;
diff --git a/tests/client.php b/tests/client.php
index 8452da40..4215d587 100644
--- a/tests/client.php
+++ b/tests/client.php
@@ -2,27 +2,18 @@
<body bgcolor=white>
<?php
/**
- * ADOdb tests - Proxy client
+ * @version v5.22.0-dev Unreleased
+ * @copyright (c) 2001-2013 John Lim (jlim#natsoft.com). All rights reserved.
+ * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ * Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
*
- * @link https://adodb.org/dokuwiki/doku.php?id=v5:proxy:proxy_index
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
+ * set tabs to 8
*/
+ // documentation on usage is at https://adodb.org/dokuwiki/doku.php?id=v5:proxy:proxy_index
+
echo PHP_VERSION,'<br>';
var_dump(parse_url('odbc_mssql://userserver/'));
die();
diff --git a/tests/pdo.php b/tests/pdo.php
index b1b54528..31ca5969 100644
--- a/tests/pdo.php
+++ b/tests/pdo.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests -PDO.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
error_reporting(E_ALL);
include('../adodb.inc.php');
diff --git a/tests/test-active-record.php b/tests/test-active-record.php
index 081527e0..8fb02caa 100644
--- a/tests/test-active-record.php
+++ b/tests/test-active-record.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
include_once('../adodb.inc.php');
include_once('../adodb-active-record.inc.php');
diff --git a/tests/test-active-recs2.php b/tests/test-active-recs2.php
index a9fcbc03..f5898fcd 100644
--- a/tests/test-active-recs2.php
+++ b/tests/test-active-recs2.php
@@ -1,24 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
-
error_reporting(E_ALL);
include('../adodb.inc.php');
diff --git a/tests/test-active-relations.php b/tests/test-active-relations.php
index bb013759..7a98d479 100644
--- a/tests/test-active-relations.php
+++ b/tests/test-active-relations.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
include_once('../adodb.inc.php');
include_once('../adodb-active-record.inc.php');
diff --git a/tests/test-active-relationsx.php b/tests/test-active-relationsx.php
index 4d3a80db..0f28f728 100644
--- a/tests/test-active-relationsx.php
+++ b/tests/test-active-relationsx.php
@@ -1,24 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
-
global $err_count;
$err_count = 0;
diff --git a/tests/test-datadict.php b/tests/test-datadict.php
index 5caea253..751ed997 100644
--- a/tests/test-datadict.php
+++ b/tests/test-datadict.php
@@ -1,23 +1,16 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+
+ @version v5.22.0-dev Unreleased
+ @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+ @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+
+ Set tabs to 4 for best viewing.
+
+*/
error_reporting(E_ALL);
include_once('../adodb.inc.php');
diff --git a/tests/test-perf.php b/tests/test-perf.php
index 4c83c17e..62465bef 100644
--- a/tests/test-perf.php
+++ b/tests/test-perf.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
include_once('../adodb-perf.inc.php');
diff --git a/tests/test-pgblob.php b/tests/test-pgblob.php
index 4c8bd167..3add99e6 100644
--- a/tests/test-pgblob.php
+++ b/tests/test-pgblob.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
function getmicrotime()
{
diff --git a/tests/test-php5.php b/tests/test-php5.php
index 6d8758b1..77bc926b 100644
--- a/tests/test-php5.php
+++ b/tests/test-php5.php
@@ -1,24 +1,15 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
+/*
+ @version v5.22.0-dev Unreleased
+ @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+ @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 8.
*/
+
error_reporting(E_ALL);
$path = dirname(__FILE__);
diff --git a/tests/test-xmlschema.php b/tests/test-xmlschema.php
index e2d6dba8..c56cfec8 100644
--- a/tests/test-xmlschema.php
+++ b/tests/test-xmlschema.php
@@ -1,23 +1,6 @@
-<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+<?PHP
+
+// V4.50 6 July 2004
error_reporting(E_ALL);
include_once( "../adodb.inc.php" );
diff --git a/tests/test.php b/tests/test.php
index fb23980b..d164afa3 100644
--- a/tests/test.php
+++ b/tests/test.php
@@ -1,23 +1,16 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+
+ Latest version is available at https://adodb.org/
+*/
+
//if (!defined('E_STRICT')) define('E_STRICT',0);
error_reporting(E_ALL|E_STRICT);
diff --git a/tests/test2.php b/tests/test2.php
index fd288dca..eb3b0258 100644
--- a/tests/test2.php
+++ b/tests/test2.php
@@ -1,23 +1,6 @@
<?php
-/**
- * * ADOdb tests - BASIC ADO test.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+
+// BASIC ADO test
include_once('../adodb.inc.php');
diff --git a/tests/test3.php b/tests/test3.php
index 38c52853..b5ac1e97 100644
--- a/tests/test3.php
+++ b/tests/test3.php
@@ -1,24 +1,15 @@
<?php
-/**
- * * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
+/*
+ @version v5.22.0-dev Unreleased
+ @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+ @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 8.
*/
+
error_reporting(E_ALL);
$path = dirname(__FILE__);
diff --git a/tests/test4.php b/tests/test4.php
index cdaf5277..c9eb2d62 100644
--- a/tests/test4.php
+++ b/tests/test4.php
@@ -1,22 +1,18 @@
<?php
+
/**
- * Test GetUpdateSQL and GetInsertSQL.
+ * @version v5.22.0-dev Unreleased
+ * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+ * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ * Released under both BSD license and Lesser GPL library license.
+ * Whenever there is any discrepancy between the two licenses,
+ * the BSD license will take precedence.
*
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
+ * Set tabs to 4 for best viewing.
*
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
+ * Latest version is available at https://adodb.org/
*
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
+ * Test GetUpdateSQL and GetInsertSQL.
*/
error_reporting(E_ALL);
diff --git a/tests/test5.php b/tests/test5.php
index 15327d1d..56c4594d 100644
--- a/tests/test5.php
+++ b/tests/test5.php
@@ -1,23 +1,18 @@
<?php
-/**
- * * ADOdb tests - Select an empty record from the database.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+
+ Latest version is available at https://adodb.org/
+*/
+
+
+// Select an empty record from the database
include('../adodb.inc.php');
include('../tohtml.inc.php');
diff --git a/tests/test_mssqlnative.php b/tests/test_mssqlnative.php
index 9a4221fd..756e2447 100644
--- a/tests/test_mssqlnative.php
+++ b/tests/test_mssqlnative.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
error_reporting(E_ALL|E_STRICT);
diff --git a/tests/test_rs_array.php b/tests/test_rs_array.php
index 75848c04..547b20ad 100644
--- a/tests/test_rs_array.php
+++ b/tests/test_rs_array.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
include_once('../adodb.inc.php');
$rs = new ADORecordSet_array();
diff --git a/tests/testcache.php b/tests/testcache.php
index bf8676b9..32edc07b 100644
--- a/tests/testcache.php
+++ b/tests/testcache.php
@@ -1,25 +1,17 @@
<html>
<body>
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+
+ Latest version is available at https://adodb.org/
+*/
$ADODB_CACHE_DIR = dirname(tempnam('/tmp',''));
include("../adodb.inc.php");
diff --git a/tests/testdatabases.inc.php b/tests/testdatabases.inc.php
index 8c6358a4..e49fcd80 100644
--- a/tests/testdatabases.inc.php
+++ b/tests/testdatabases.inc.php
@@ -1,26 +1,16 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is used by the ADODB test program: test.php
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
-?>
+
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+*/
+
+ /* this file is used by the ADODB test program: test.php */
+ ?>
<table><tr valign=top><td>
<form method=get>
diff --git a/tests/testgenid.php b/tests/testgenid.php
index 3a8a9738..3310734a 100644
--- a/tests/testgenid.php
+++ b/tests/testgenid.php
@@ -1,27 +1,10 @@
<?php
-/**
- * ADOdb tests - ID generation.
- *
- * Run multiple copies of this php script at the same time
- * to test unique generation of id's in multiuser mode
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+ V4.50 6 July 2004
+ Run multiple copies of this php script at the same time
+ to test unique generation of id's in multiuser mode
+*/
include_once('../adodb.inc.php');
$testaccess = true;
include_once('testdatabases.inc.php');
diff --git a/tests/testmssql.php b/tests/testmssql.php
index fa8570b1..d33ae3cd 100644
--- a/tests/testmssql.php
+++ b/tests/testmssql.php
@@ -1,22 +1,18 @@
<?php
+
/**
- * Test GetUpdateSQL and GetInsertSQL.
+ * @version v5.22.0-dev Unreleased
+ * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+ * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ * Released under both BSD license and Lesser GPL library license.
+ * Whenever there is any discrepancy between the two licenses,
+ * the BSD license will take precedence.
*
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
+ * Set tabs to 4 for best viewing.
*
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
+ * Latest version is available at https://adodb.org/
*
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
+ * Test GetUpdateSQL and GetInsertSQL.
*/
error_reporting(E_ALL);
diff --git a/tests/testoci8.php b/tests/testoci8.php
index 81cf1857..a0ca80bd 100644
--- a/tests/testoci8.php
+++ b/tests/testoci8.php
@@ -1,26 +1,17 @@
<html>
<body>
<?php
-/**
- * ADOdb tests - oci8
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+ Latest version is available at https://adodb.org/
+*/
error_reporting(E_ALL | E_STRICT);
include("../adodb.inc.php");
include("../tohtml.inc.php");
diff --git a/tests/testoci8cursor.php b/tests/testoci8cursor.php
index 9dcf8ca9..de6f3a32 100644
--- a/tests/testoci8cursor.php
+++ b/tests/testoci8cursor.php
@@ -1,25 +1,19 @@
<?php
-/**
- * Test for Oracle Variable Cursors, which are treated as ADOdb recordsets.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+
+ Latest version is available at https://adodb.org/
+*/
/*
+ Test for Oracle Variable Cursors, which are treated as ADOdb recordsets.
+
We have 2 examples. The first shows us using the Parameter statement.
The second shows us using the new ExecuteCursor($sql, $cursorName)
function.
diff --git a/tests/testpaging.php b/tests/testpaging.php
index 956d748e..8b2c846b 100644
--- a/tests/testpaging.php
+++ b/tests/testpaging.php
@@ -1,23 +1,15 @@
<?php
-/**
- * ADOdb tests - paging.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+
+ Latest version is available at https://adodb.org/
+*/
error_reporting(E_ALL);
diff --git a/tests/testpear.php b/tests/testpear.php
index 5949abe3..278d161b 100644
--- a/tests/testpear.php
+++ b/tests/testpear.php
@@ -1,23 +1,15 @@
<?php
-/**
- * ADOdb tests - PEAR DB.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+
+ Latest version is available at https://adodb.org/
+*/
error_reporting(E_ALL);
diff --git a/tests/testsessions.php b/tests/testsessions.php
index 2eca41bb..e8f7514e 100644
--- a/tests/testsessions.php
+++ b/tests/testsessions.php
@@ -1,23 +1,16 @@
<?php
-/**
- * ADOdb tests - Sessions.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
+
+/*
+@version v5.22.0-dev Unreleased
+@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
+@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
+ Released under both BSD license and Lesser GPL library license.
+ Whenever there is any discrepancy between the two licenses,
+ the BSD license will take precedence.
+ Set tabs to 4 for best viewing.
+
+ Latest version is available at https://adodb.org/
+*/
function NotifyExpire($ref,$key)
{
diff --git a/tests/time.php b/tests/time.php
index 8760ccd4..8261e1e9 100644
--- a/tests/time.php
+++ b/tests/time.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests - Time.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
include_once('../adodb-time.inc.php');
adodb_date_test();
diff --git a/tests/tmssql.php b/tests/tmssql.php
index 6b855519..0f81311a 100644
--- a/tests/tmssql.php
+++ b/tests/tmssql.php
@@ -1,23 +1,4 @@
<?php
-/**
- * ADOdb tests.
- *
- * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
- *
- * @package ADOdb
- * @link https://adodb.org Project's web site and documentation
- * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
- *
- * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
- * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
- * any later version. This means you can use it in proprietary products.
- * See the LICENSE.md file distributed with this source code for details.
- * @license BSD-3-Clause
- * @license LGPL-2.1-or-later
- *
- * @copyright 2000-2013 John Lim
- * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
- */
error_reporting(E_ALL);
ini_set('mssql.datetimeconvert',0);