From f8d988b4b610c3b0d63fadb6c77462dc14f58afe Mon Sep 17 00:00:00 2001 From: Steven Oxley Date: Tue, 27 Oct 2009 12:14:14 -0400 Subject: [PATCH] Added test suites so that regression testing is easier. --- tests/AllTests.php | 15 +++++++++++++++ tests/blocks/AllTests.php | 14 ++++++++++++++ tests/helpers/AllTests.php | 16 ++++++++++++++++ tests/helpers/FreqTest.php | 6 ++++-- 4 files changed, 49 insertions(+), 2 deletions(-) create mode 100755 tests/AllTests.php create mode 100755 tests/blocks/AllTests.php create mode 100755 tests/helpers/AllTests.php diff --git a/tests/AllTests.php b/tests/AllTests.php new file mode 100755 index 0000000..94e899a --- /dev/null +++ b/tests/AllTests.php @@ -0,0 +1,15 @@ +addTest(Blocks_AllTests::suite()); + $suite->addTest(Helpers_AllTests::suite()); + + return $suite; + } +} diff --git a/tests/blocks/AllTests.php b/tests/blocks/AllTests.php new file mode 100755 index 0000000..c6abcc9 --- /dev/null +++ b/tests/blocks/AllTests.php @@ -0,0 +1,14 @@ +addTestSuite('VEventTest'); + + return $suite; + } +} + diff --git a/tests/helpers/AllTests.php b/tests/helpers/AllTests.php new file mode 100755 index 0000000..c33ed7b --- /dev/null +++ b/tests/helpers/AllTests.php @@ -0,0 +1,16 @@ +addTestSuite('FreqTest'); + $suite->addTestSuite('RecurrenceTest'); + + return $suite; + } + +} \ No newline at end of file diff --git a/tests/helpers/FreqTest.php b/tests/helpers/FreqTest.php index 41c6ea4..5acf0e4 100644 --- a/tests/helpers/FreqTest.php +++ b/tests/helpers/FreqTest.php @@ -3,10 +3,12 @@ require_once dirname(__FILE__) . '/../common.php'; require_once 'PHPUnit/Framework.php'; -date_default_timezone_set('Europe/Copenhagen'); - class FreqTest extends PHPUnit_Framework_TestCase { + public function setUp() { + date_default_timezone_set('Europe/Copenhagen'); + } + public function testDailyCount() { $dateset = array( 873183600,