summaryrefslogtreecommitdiff
path: root/tests/unit/AllTests.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/AllTests.php')
-rw-r--r--tests/unit/AllTests.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/unit/AllTests.php b/tests/unit/AllTests.php
new file mode 100644
index 00000000..38096801
--- /dev/null
+++ b/tests/unit/AllTests.php
@@ -0,0 +1,39 @@
+<?php
+require_once dirname(__FILE__).'/phpunit.php';
+
+if(!defined('PHPUnit_MAIN_METHOD')) {
+ define('PHPUnit_MAIN_METHOD', 'AllTests::main');
+}
+
+require_once 'Xml/AllTests.php';
+require_once 'Collections/AllTests.php';
+require_once 'I18N/core/AllTests.php';
+require_once 'Web/AllTests.php';
+require_once 'Web/UI/WebControls/AllTests.php';
+
+require_once 'TComponentTest.php';
+
+class AllTests {
+ public static function main() {
+ PHPUnit_TextUI_TestRunner::run(self::suite());
+ }
+
+ public static function suite() {
+ $suite = new PHPUnit_Framework_TestSuite('PRADO PHP Framework');
+
+ $suite->addTest(Xml_AllTests::suite());
+ $suite->addTest(Collections_AllTests::suite());
+ $suite->addTest(I18N_core_AllTests::suite());
+ $suite->addTest(Web_AllTests::suite());
+ $suite->addTest(Web_UI_WebControls_AllTests::suite());
+
+ $suite->addTestSuite('TComponentTest');
+
+ return $suite;
+ }
+}
+
+if(PHPUnit_MAIN_METHOD == 'AllTests::main') {
+ AllTests::main();
+}
+?>