Skip to content

TOGoS/TOGoSDBC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== Running unit tests ==

Install PHPUnit (I like to use 3.4.9 because it's easy to install and hack fixes into).

In order to run tests that need to connect to an actual database,
create a file in this directory called unittest-config.php.  Mine
looks like this:

	<?php

	TOGoS_DBC_TestConfig::$mysqlTestConfig = array(
		'driver' => 'mysql',
		'host' => 'lokelhost',
		'port' => 5506,
		'user' => 'unittest',
		'password' => 'unittest',
		'database' => 'dbc_unittest',
	);

dbc_unittest is a blank database dedicated soely to testing the
SQLExecutor objects.  The unittest user has all privileges in it.

About

A minimal SQL database connection API for PHP 5.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published