aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-05-14 03:21:08 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-08-03 10:50:41 +0200
commit3e111bb41ad6a2ea954dd52bcf78b954114c37e9 (patch)
tree54aef539d213c4744b0af2ec5c78e02d20161dff /tests
parente1328e87ce23245dbd55a08fbaf3d48e957a6777 (diff)
downloadforums-3e111bb41ad6a2ea954dd52bcf78b954114c37e9.tar
forums-3e111bb41ad6a2ea954dd52bcf78b954114c37e9.tar.gz
forums-3e111bb41ad6a2ea954dd52bcf78b954114c37e9.tar.bz2
forums-3e111bb41ad6a2ea954dd52bcf78b954114c37e9.tar.xz
forums-3e111bb41ad6a2ea954dd52bcf78b954114c37e9.zip
[ticket/9599] Adding network function tests.
PHPBB3-9599
Diffstat (limited to 'tests')
-rw-r--r--tests/all_tests.php2
-rw-r--r--tests/network/all_tests.php36
2 files changed, 38 insertions, 0 deletions
diff --git a/tests/all_tests.php b/tests/all_tests.php
index 7894d688ee..8dc07872e8 100644
--- a/tests/all_tests.php
+++ b/tests/all_tests.php
@@ -24,6 +24,7 @@ require_once 'template/all_tests.php';
require_once 'text_processing/all_tests.php';
require_once 'dbal/all_tests.php';
require_once 'regex/all_tests.php';
+require_once 'network/all_tests.php';
// exclude the test directory from code coverage reports
PHPUnit_Util_Filter::addDirectoryToFilter('./');
@@ -46,6 +47,7 @@ class phpbb_all_tests
$suite->addTest(phpbb_text_processing_all_tests::suite());
$suite->addTest(phpbb_dbal_all_tests::suite());
$suite->addTest(phpbb_regex_all_tests::suite());
+ $suite->addTest(phpbb_network_all_tests::suite());
return $suite;
}
diff --git a/tests/network/all_tests.php b/tests/network/all_tests.php
new file mode 100644
index 0000000000..07a7e57d48
--- /dev/null
+++ b/tests/network/all_tests.php
@@ -0,0 +1,36 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2010 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+*
+*/
+
+if (!defined('PHPUnit_MAIN_METHOD'))
+{
+ define('PHPUnit_MAIN_METHOD', 'phpbb_network_all_tests::main');
+}
+
+require_once 'test_framework/framework.php';
+require_once 'PHPUnit/TextUI/TestRunner.php';
+
+class phpbb_network_all_tests
+{
+ public static function main()
+ {
+ PHPUnit_TextUI_TestRunner::run(self::suite());
+ }
+
+ public static function suite()
+ {
+ $suite = new PHPUnit_Framework_TestSuite('phpBB Network Functions');
+
+ return $suite;
+ }
+}
+
+if (PHPUnit_MAIN_METHOD == 'phpbb_network_all_tests::main')
+{
+ phpbb_network_all_tests::main();
+}