aboutsummaryrefslogtreecommitdiffstats
path: root/tests/regex/all_tests.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-04-09 00:39:12 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-05-25 12:08:51 +0200
commit222173adae59af660c18ce89c606b3ee212d9a4a (patch)
tree979aa15ec849a7565854f44b5fb733626c20a41a /tests/regex/all_tests.php
parent6d7e30ae995fe0791c2bced0974b0445fa769ee9 (diff)
downloadforums-222173adae59af660c18ce89c606b3ee212d9a4a.tar
forums-222173adae59af660c18ce89c606b3ee212d9a4a.tar.gz
forums-222173adae59af660c18ce89c606b3ee212d9a4a.tar.bz2
forums-222173adae59af660c18ce89c606b3ee212d9a4a.tar.xz
forums-222173adae59af660c18ce89c606b3ee212d9a4a.zip
[ticket/9626] Adding tests for regular expressions.
Adding tests for the IPv6 regular expression returned by get_preg_expression() PHPBB3-9626
Diffstat (limited to 'tests/regex/all_tests.php')
-rw-r--r--tests/regex/all_tests.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/regex/all_tests.php b/tests/regex/all_tests.php
new file mode 100644
index 0000000000..aeb242b78b
--- /dev/null
+++ b/tests/regex/all_tests.php
@@ -0,0 +1,40 @@
+<?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_regex_all_tests::main');
+}
+
+require_once 'test_framework/framework.php';
+require_once 'PHPUnit/TextUI/TestRunner.php';
+
+require_once 'regex/ipv6.php';
+
+class phpbb_regex_all_tests
+{
+ public static function main()
+ {
+ PHPUnit_TextUI_TestRunner::run(self::suite());
+ }
+
+ public static function suite()
+ {
+ $suite = new PHPUnit_Framework_TestSuite('phpBB Regular Expressions');
+
+ $suite->addTestSuite('phpbb_ipv6_test');
+
+ return $suite;
+ }
+}
+
+if (PHPUnit_MAIN_METHOD == 'phpbb_regex_all_tests::main')
+{
+ phpbb_regex_all_tests::main();
+}