diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2010-03-26 16:39:37 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2010-03-26 16:39:37 +0100 |
| commit | 94bc65e2038407b8b6d2b23c195b232e07208d22 (patch) | |
| tree | f3423e9b9db1868b1471570b374af1d6e0eb27b8 /tests/test_framework/framework.php | |
| parent | c71b1245ecf60d7b8b1143b1f558fcd2a974383a (diff) | |
| download | forums-94bc65e2038407b8b6d2b23c195b232e07208d22.tar forums-94bc65e2038407b8b6d2b23c195b232e07208d22.tar.gz forums-94bc65e2038407b8b6d2b23c195b232e07208d22.tar.bz2 forums-94bc65e2038407b8b6d2b23c195b232e07208d22.tar.xz forums-94bc65e2038407b8b6d2b23c195b232e07208d22.zip | |
[feature/dbal-tests] Added database test & refactored test framework
There is now a phpbb_database_test_case which can be used as a base class for tests that require database access. You have to set up a test_config.php file in your tests/ directory containing host, user, pass etc.
Extra test functionality has been moved to phpbb_test_case_helpers to provide the same functionality in database tests and regular tests without duplicating the code. This is achieved through delegation of method calls.
Diffstat (limited to 'tests/test_framework/framework.php')
| -rw-r--r-- | tests/test_framework/framework.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_framework/framework.php b/tests/test_framework/framework.php index 5913d20ca0..abdcd1ad79 100644 --- a/tests/test_framework/framework.php +++ b/tests/test_framework/framework.php @@ -33,4 +33,7 @@ if (version_compare(PHPUnit_Runner_Version::id(), '3.3.0', '<')) } require_once 'PHPUnit/Framework.php'; +require_once 'PHPUnit/Extensions/Database/TestCase.php'; +require_once 'test_framework/phpbb_test_case_helpers.php'; require_once 'test_framework/phpbb_test_case.php'; +require_once 'test_framework/phpbb_database_test_case.php'; |
