From 376a5af2d258f87e2be75b667850436987c68a55 Mon Sep 17 00:00:00 2001 From: knut <> Date: Tue, 29 May 2007 20:29:10 +0000 Subject: upgraded unit test suite to use PHPUnit3 use "cd tests/; phpunit AllTests.php" to run the tests use "cd tests/; phpunit --report=coverage AllTests.php" to get a nice code coverage report (need xdebug) --- tests/unit/Collections/AllTests.php | 29 +++++++++++++++++++++++++++++ tests/unit/Collections/TListTest.php | 4 ++-- tests/unit/Collections/TMapTest.php | 4 ++-- 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 tests/unit/Collections/AllTests.php (limited to 'tests/unit/Collections') 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 @@ +addTestSuite('TListTest'); + $suite->addTestSuite('TMapTest'); + + return $suite; + } +} + +if(PHPUnit_MAIN_METHOD == 'Collections_AllTests::main') { + Collections_AllTests::main(); +} +?> diff --git a/tests/unit/Collections/TListTest.php b/tests/unit/Collections/TListTest.php index e090728c..1750d743 100644 --- a/tests/unit/Collections/TListTest.php +++ b/tests/unit/Collections/TListTest.php @@ -1,5 +1,5 @@