ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


project:unittests

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
project:unittests [2025/08/05 01:29] – [Memcache Based] mnewnhamproject:unittests [2025/09/25 05:12] (current) – [ADOdb Section] mnewnham
Line 4: Line 4:
  
 ===== Prerequistes =====   ===== Prerequistes =====  
-[[https://phpunit.de|PHPUnit]] Version 9 or higher must be installed to conduct the suite of tests.+  * PHP 8.0 or higher 
 +  * [[https://phpunit.de|PHPUnit]] Version 9 or higher must be installed to conduct the suite of tests. 
  
 ===== Setup ===== ===== Setup =====
 Configuration information for the tests is held in a configuration file //**adodb-unittest.ini**//. The file can be located anywhere in the PHP include path.  Configuration information for the tests is held in a configuration file //**adodb-unittest.ini**//. The file can be located anywhere in the PHP include path. 
  
-===== Settup Up The Configuration File ===== +===== Setting Up The Configuration File ===== 
 ==== ADOdb Section ==== ==== ADOdb Section ====
-If the ADOdb section is defined, and the item directory is set, the tests can be run against any ADOdb installation set locallyThis is useful if ADOdb is embedded into a different application+Add the ADOdb section and set the item directory The tests will be run against the ADOdb installation in that directory. 
 + 
 +Setting the casing activates the ADODB_CASE value
  
 <code> <code>
 [ADOdb] [ADOdb]
 directory=/opt/some/local/ADOdb/installation directory=/opt/some/local/ADOdb/installation
-</code> +casing=1
- +
-If the section is not defined, it assumes that the ADOdb installation is the parent directory of the unit test +
- +
-<code> +
-/opt/ADOdb +
-/opt/ADOdb/unittest+
 </code> </code>
  
Line 34: Line 31:
  
 ==== XMLschema Section ====  ==== XMLschema Section ==== 
-This section must be explicitly enabled in the configuration file, with the skipXmlTests value set to 0 , otherwise all tests in the section are skipped. Setting the value to 1 will also skip the tests+This section must be explicitly enabled in the configuration file, with the skipXmlTests value set to 0, otherwise all tests in the section are skipped. Setting the value to 1 will also skip the tests
 +Setting debug=1 in this section activates the extended debugging feature available in this module.
 <code> <code>
 [xmlschema] [xmlschema]
 skipXmlTests=0 skipXmlTests=0
 +debug=0
 </code> </code>
 ==== Driver Section ==== ==== Driver Section ====
project/unittests.1754350194.txt.gz · Last modified: by mnewnham