diff options
author | knut <> | 2007-05-29 20:43:14 +0000 |
---|---|---|
committer | knut <> | 2007-05-29 20:43:14 +0000 |
commit | f3931ef17118868d89103b54549345c5cb0f86bb (patch) | |
tree | 0b49f7cb30bb30e732abf2bac65aa5da8c00f5f1 /tests/unit/IO/AllTests.php | |
parent | 376a5af2d258f87e2be75b667850436987c68a55 (diff) |
added tests for TextWriter and added IO test suite
Diffstat (limited to 'tests/unit/IO/AllTests.php')
-rw-r--r-- | tests/unit/IO/AllTests.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/unit/IO/AllTests.php b/tests/unit/IO/AllTests.php new file mode 100644 index 00000000..da8d91a0 --- /dev/null +++ b/tests/unit/IO/AllTests.php @@ -0,0 +1,27 @@ +<?php +require_once dirname(__FILE__).'/../phpunit.php'; + +if(!defined('PHPUnit_MAIN_METHOD')) { + define('PHPUnit_MAIN_METHOD', 'IO_AllTests::main'); +} + +require_once 'TTextWriterTest.php'; + +class IO_AllTests { + public static function main() { + PHPUnit_TextUI_TestRunner::run(self::suite()); + } + + public static function suite() { + $suite = new PHPUnit_Framework_TestSuite('System.IO'); + + $suite->addTestSuite('TTextWriterTest'); + + return $suite; + } +} + +if(PHPUnit_MAIN_METHOD == 'IO_AllTests::main') { + IO_AllTests::main(); +} +?> |