aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/all_tests.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2010-03-26 16:41:19 +0100
committerJoas Schilling <nickvergessen@gmx.de>2010-03-26 16:41:19 +0100
commitaf654814f63e05be5236075f06943062be007072 (patch)
tree18b72e7817d2b73a78e93573ab3410539851ec10 /tests/dbal/all_tests.php
parent94bc65e2038407b8b6d2b23c195b232e07208d22 (diff)
downloadforums-af654814f63e05be5236075f06943062be007072.tar
forums-af654814f63e05be5236075f06943062be007072.tar.gz
forums-af654814f63e05be5236075f06943062be007072.tar.bz2
forums-af654814f63e05be5236075f06943062be007072.tar.xz
forums-af654814f63e05be5236075f06943062be007072.zip
[feature/dbal-tests] Added tests for dbal fetchrow and fetchfield.
Diffstat (limited to 'tests/dbal/all_tests.php')
-rw-r--r--tests/dbal/all_tests.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/dbal/all_tests.php b/tests/dbal/all_tests.php
new file mode 100644
index 0000000000..7aee0f6b16
--- /dev/null
+++ b/tests/dbal/all_tests.php
@@ -0,0 +1,40 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2008 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+*
+*/
+
+if (!defined('PHPUnit_MAIN_METHOD'))
+{
+ define('PHPUnit_MAIN_METHOD', 'phpbb_dbal_all_tests::main');
+}
+
+require_once 'test_framework/framework.php';
+require_once 'PHPUnit/TextUI/TestRunner.php';
+
+require_once 'dbal/dbal.php';
+
+class phpbb_dbal_all_tests
+{
+ public static function main()
+ {
+ PHPUnit_TextUI_TestRunner::run(self::suite());
+ }
+
+ public static function suite()
+ {
+ $suite = new PHPUnit_Framework_TestSuite('phpBB Database Abstraction Layer');
+
+ $suite->addTestSuite('phpbb_dbal_test');
+
+ return $suite;
+ }
+}
+
+if (PHPUnit_MAIN_METHOD == 'phpbb_dbal_all_tests::main')
+{
+ phpbb_dbal_all_tests::main();
+}