diff options
Diffstat (limited to 'tests/unit/Collections/AllTests.php')
-rw-r--r-- | tests/unit/Collections/AllTests.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/unit/Collections/AllTests.php b/tests/unit/Collections/AllTests.php new file mode 100644 index 00000000..c9da9132 --- /dev/null +++ b/tests/unit/Collections/AllTests.php @@ -0,0 +1,29 @@ +<?php +require_once dirname(__FILE__).'/../phpunit.php'; + +if(!defined('PHPUnit_MAIN_METHOD')) { + define('PHPUnit_MAIN_METHOD', 'Collections_AllTests::main'); +} + +require_once 'Collections/TListTest.php'; +require_once 'Collections/TMapTest.php'; + +class Collections_AllTests { + public static function main() { + PHPUnit_TextUI_TestRunner::run(self::suite()); + } + + public static function suite() { + $suite = new PHPUnit_Framework_TestSuite('System.Collections'); + + $suite->addTestSuite('TListTest'); + $suite->addTestSuite('TMapTest'); + + return $suite; + } +} + +if(PHPUnit_MAIN_METHOD == 'Collections_AllTests::main') { + Collections_AllTests::main(); +} +?> |