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/I18N/core/AllTests.php | 35 +++++++++++++++++++++++++ tests/unit/I18N/core/CultureInfoTest.php | 4 +-- tests/unit/I18N/core/DateFormatTest.php | 4 +-- tests/unit/I18N/core/DateTimeFormatInfoTest.php | 4 +-- tests/unit/I18N/core/NumberFormatInfoTest.php | 4 +-- tests/unit/I18N/core/NumberFormatTest.php | 4 +-- 6 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 tests/unit/I18N/core/AllTests.php (limited to 'tests/unit/I18N') diff --git a/tests/unit/I18N/core/AllTests.php b/tests/unit/I18N/core/AllTests.php new file mode 100644 index 00000000..66c8a6f2 --- /dev/null +++ b/tests/unit/I18N/core/AllTests.php @@ -0,0 +1,35 @@ +addTestSuite('CultureInfoTest'); + $suite->addTestSuite('DateFormatTest'); + $suite->addTestSuite('DateTimeFormatInfoTest'); + $suite->addTestSuite('NumberFormatInfoTest'); + $suite->addTestSuite('NumberFormatTest'); + + return $suite; + } +} + +if(PHPUnit_MAIN_METHOD == 'I18N_core_AllTests::main') { + I18N_core_AllTests::main(); +} +?> diff --git a/tests/unit/I18N/core/CultureInfoTest.php b/tests/unit/I18N/core/CultureInfoTest.php index 14b60ece..c043edd7 100644 --- a/tests/unit/I18N/core/CultureInfoTest.php +++ b/tests/unit/I18N/core/CultureInfoTest.php @@ -1,12 +1,12 @@