Source for file test_general.php
Documentation is available at test_general.php
* Tests general class functions.
* This script is used during development of the class itself.
* @author Sascha 'SieGeL' Pfalz <php@saschapfalz.de>
* @version 0.20 (07-Aug-2010)
* $Id: test_general.php,v 1.4 2010/08/07 17:47:05 siegel Exp $
* @license http://opensource.org/licenses/bsd-license.php BSD License
* Load in the general functions for all tests.
require_once('functions.inc.php');
/** Define the name of the database to use for this example: */
define('SQLITEDB_TESTDB' , '/tmp/test.dbf');
// Create new instance of class
// Before doing anything connect first!
echo
($d['LF'].
'General Test for SQLite class'.
$d['LF'].
$d['LF']);
$rc =
$db->Query('SELECT COUNT(*) AS TANZ FROM sqlite_master');
printf("PHP Version / SAPI type.........: %s / %s%s",phpversion(),$d['SAPI'],$d['LF']);
printf("SQLite class version............: %s%s",$db->GetClassVersion(),$d['LF']);
printf("SQLite library version..........: %s%s",$db->Version(),$d['LF']);
printf("Number of objects in database...: %s%s",$rc['TANZ'],$d['LF']);
// Always disconnect when you don't need the database anymore
// Dump out all defined methods in the class:
printf("%sList of defined functions (%s) in SQLite class:%s%s",$d['LF'],count($class_methods),$d['LF'],$d['LF']);
foreach ($class_methods as $method_name)
printf("%02d. %s%s",$cnt,$method_name,$d['LF']);
Documentation generated on Sat, 07 Aug 2010 20:01:06 +0200 by phpDocumentor 1.4.3