summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-04-25 13:00:25 +0200
committerDamien Regad <dregad@mantisbt.org>2021-08-14 13:09:22 +0200
commit40adddf9bcaebec79448c84142a06d0073157cbb (patch)
tree441f04faa9eea8c528f3cf339e85c076665a4c9e /tests
parent0707b9da7ae9c413d7f77aa04eb7b1b406a71e99 (diff)
downloadadodb-40adddf9bcaebec79448c84142a06d0073157cbb.tar.gz
adodb-40adddf9bcaebec79448c84142a06d0073157cbb.tar.bz2
adodb-40adddf9bcaebec79448c84142a06d0073157cbb.zip
Standard file header: /tests
Diffstat (limited to 'tests')
-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.php19
-rw-r--r--tests/time.php19
-rw-r--r--tests/tmssql.php19
30 files changed, 571 insertions, 178 deletions
diff --git a/tests/benchmark.php b/tests/benchmark.php
index 4a982e41..5799031d 100644
--- a/tests/benchmark.php
+++ b/tests/benchmark.php
@@ -1,24 +1,33 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
<html>
<head>
- <title>ADODB Benchmarks</title>
+ <title>ADODB Benchmarks</title>
</head>
<body>
<?php
-/*
-@version v5.21.1-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.
-*/
+/**
+ * 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
+ */
$testmssql = true;
//$testvfp = true;
diff --git a/tests/client.php b/tests/client.php
index af8569f1..8452da40 100644
--- a/tests/client.php
+++ b/tests/client.php
@@ -2,18 +2,27 @@
<body bgcolor=white>
<?php
/**
- * @version v5.21.1-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.
+ * ADOdb tests - Proxy client
*
- * set tabs to 8
+ * @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
*/
- // 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 31ca5969..b1b54528 100644
--- a/tests/pdo.php
+++ b/tests/pdo.php
@@ -1,4 +1,23 @@
<?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 8fb02caa..081527e0 100644
--- a/tests/test-active-record.php
+++ b/tests/test-active-record.php
@@ -1,4 +1,23 @@
<?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 f5898fcd..a9fcbc03 100644
--- a/tests/test-active-recs2.php
+++ b/tests/test-active-recs2.php
@@ -1,4 +1,24 @@
<?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 7a98d479..bb013759 100644
--- a/tests/test-active-relations.php
+++ b/tests/test-active-relations.php
@@ -1,4 +1,23 @@
<?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 0f28f728..4d3a80db 100644
--- a/tests/test-active-relationsx.php
+++ b/tests/test-active-relationsx.php
@@ -1,4 +1,24 @@
<?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 071ebf34..5caea253 100644
--- a/tests/test-datadict.php
+++ b/tests/test-datadict.php
@@ -1,16 +1,23 @@
<?php
-/*
-
- @version v5.21.1-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.
-
-*/
+/**
+ * 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_once('../adodb.inc.php');
diff --git a/tests/test-perf.php b/tests/test-perf.php
index 62465bef..4c83c17e 100644
--- a/tests/test-perf.php
+++ b/tests/test-perf.php
@@ -1,4 +1,23 @@
<?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 3add99e6..4c8bd167 100644
--- a/tests/test-pgblob.php
+++ b/tests/test-pgblob.php
@@ -1,4 +1,23 @@
<?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 e29d3fe3..6d8758b1 100644
--- a/tests/test-php5.php
+++ b/tests/test-php5.php
@@ -1,15 +1,24 @@
<?php
-/*
- @version v5.21.1-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.
+/**
+ * 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);
$path = dirname(__FILE__);
diff --git a/tests/test-xmlschema.php b/tests/test-xmlschema.php
index c56cfec8..e2d6dba8 100644
--- a/tests/test-xmlschema.php
+++ b/tests/test-xmlschema.php
@@ -1,6 +1,23 @@
-<?PHP
-
-// V4.50 6 July 2004
+<?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_once( "../adodb.inc.php" );
diff --git a/tests/test.php b/tests/test.php
index 1cafa8c9..fb23980b 100644
--- a/tests/test.php
+++ b/tests/test.php
@@ -1,16 +1,23 @@
<?php
-/*
-@version v5.21.1-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 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
+ */
//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 eb3b0258..fd288dca 100644
--- a/tests/test2.php
+++ b/tests/test2.php
@@ -1,6 +1,23 @@
<?php
-
-// BASIC ADO test
+/**
+ * * 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
+ */
include_once('../adodb.inc.php');
diff --git a/tests/test3.php b/tests/test3.php
index e6d72218..38c52853 100644
--- a/tests/test3.php
+++ b/tests/test3.php
@@ -1,15 +1,24 @@
<?php
-/*
- @version v5.21.1-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.
+/**
+ * * 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);
$path = dirname(__FILE__);
diff --git a/tests/test4.php b/tests/test4.php
index 19b6efdd..cdaf5277 100644
--- a/tests/test4.php
+++ b/tests/test4.php
@@ -1,18 +1,22 @@
<?php
-
/**
- * @version v5.21.1-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.
+ * Test GetUpdateSQL and GetInsertSQL.
*
- * Set tabs to 4 for best viewing.
+ * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
*
- * Latest version is available at https://adodb.org/
+ * @package ADOdb
+ * @link https://adodb.org Project's web site and documentation
+ * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
*
- * Test GetUpdateSQL and GetInsertSQL.
+ * 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);
diff --git a/tests/test5.php b/tests/test5.php
index c8bda3b6..15327d1d 100644
--- a/tests/test5.php
+++ b/tests/test5.php
@@ -1,18 +1,23 @@
<?php
-/*
-@version v5.21.1-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
+/**
+ * * 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
+ */
include('../adodb.inc.php');
include('../tohtml.inc.php');
diff --git a/tests/test_mssqlnative.php b/tests/test_mssqlnative.php
index 756e2447..9a4221fd 100644
--- a/tests/test_mssqlnative.php
+++ b/tests/test_mssqlnative.php
@@ -1,4 +1,23 @@
<?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 547b20ad..75848c04 100644
--- a/tests/test_rs_array.php
+++ b/tests/test_rs_array.php
@@ -1,4 +1,23 @@
<?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 2c2d2015..bf8676b9 100644
--- a/tests/testcache.php
+++ b/tests/testcache.php
@@ -1,17 +1,25 @@
<html>
<body>
<?php
-/*
-@version v5.21.1-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 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
+ */
$ADODB_CACHE_DIR = dirname(tempnam('/tmp',''));
include("../adodb.inc.php");
diff --git a/tests/testdatabases.inc.php b/tests/testdatabases.inc.php
index 3f283e86..8c6358a4 100644
--- a/tests/testdatabases.inc.php
+++ b/tests/testdatabases.inc.php
@@ -1,16 +1,26 @@
<?php
-
-/*
-@version v5.21.1-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 */
- ?>
+/**
+ * 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
+ */
+?>
<table><tr valign=top><td>
<form method=get>
diff --git a/tests/testgenid.php b/tests/testgenid.php
index 3310734a..3a8a9738 100644
--- a/tests/testgenid.php
+++ b/tests/testgenid.php
@@ -1,10 +1,27 @@
<?php
-/*
- V4.50 6 July 2004
+/**
+ * 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
+ */
- 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 abae2f9a..fa8570b1 100644
--- a/tests/testmssql.php
+++ b/tests/testmssql.php
@@ -1,18 +1,22 @@
<?php
-
/**
- * @version v5.21.1-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.
+ * Test GetUpdateSQL and GetInsertSQL.
*
- * Set tabs to 4 for best viewing.
+ * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
*
- * Latest version is available at https://adodb.org/
+ * @package ADOdb
+ * @link https://adodb.org Project's web site and documentation
+ * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
*
- * Test GetUpdateSQL and GetInsertSQL.
+ * 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);
diff --git a/tests/testoci8.php b/tests/testoci8.php
index 2f9f77fc..81cf1857 100644
--- a/tests/testoci8.php
+++ b/tests/testoci8.php
@@ -1,17 +1,26 @@
<html>
<body>
<?php
-/*
-@version v5.21.1-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.
+/**
+ * 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
+ */
- 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 201d5c22..9dcf8ca9 100644
--- a/tests/testoci8cursor.php
+++ b/tests/testoci8cursor.php
@@ -1,19 +1,25 @@
<?php
-/*
-@version v5.21.1-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.
+ *
+ * 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
+ */
/*
- 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 4b133ce1..956d748e 100644
--- a/tests/testpaging.php
+++ b/tests/testpaging.php
@@ -1,15 +1,23 @@
<?php
-/*
-@version v5.21.1-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 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
+ */
error_reporting(E_ALL);
diff --git a/tests/testpear.php b/tests/testpear.php
index 4ff7e15c..5949abe3 100644
--- a/tests/testpear.php
+++ b/tests/testpear.php
@@ -1,15 +1,23 @@
<?php
-/*
-@version v5.21.1-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 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
+ */
error_reporting(E_ALL);
diff --git a/tests/testsessions.php b/tests/testsessions.php
index 10eb7f75..634da61c 100644
--- a/tests/testsessions.php
+++ b/tests/testsessions.php
@@ -1,4 +1,23 @@
<?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.21.1-dev Unreleased
diff --git a/tests/time.php b/tests/time.php
index 8261e1e9..8760ccd4 100644
--- a/tests/time.php
+++ b/tests/time.php
@@ -1,4 +1,23 @@
<?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 0f81311a..6b855519 100644
--- a/tests/tmssql.php
+++ b/tests/tmssql.php
@@ -1,4 +1,23 @@
<?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);