From d0ed66bc733346cdb7266b340dc2e19b5a0590c8 Mon Sep 17 00:00:00 2001 From: Vyacheslav Agafonov Date: Fri, 2 Dec 2011 16:04:45 +0400 Subject: [PATCH] Created test suites for Mysql and Redis --- tests/MySQLTestsSuite.php | 28 ++++++++++++++++++++++++++++ tests/RedisTestsSuite.php | 27 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tests/MySQLTestsSuite.php create mode 100644 tests/RedisTestsSuite.php diff --git a/tests/MySQLTestsSuite.php b/tests/MySQLTestsSuite.php new file mode 100644 index 0000000..dc6e668 --- /dev/null +++ b/tests/MySQLTestsSuite.php @@ -0,0 +1,28 @@ + + * @link http://netmonsters.ru + * @package Majestic + * @subpackage UnitTests + * @since 2011-12-02 + * + * Test set for MySQL + */ + +require_once 'model/MySQLiDriverTest.php'; +require_once 'model/MySQLiStatementTest.php'; + + +class PackageMySQLTests +{ + public static function suite() + { + $suite = new PHPUnit_Framework_TestSuite('MySQL'); + + $suite->addTestSuite('MySQLiDriverTest'); + $suite->addTestSuite('MySQLiStatementTest'); + + return $suite; + } +} \ No newline at end of file diff --git a/tests/RedisTestsSuite.php b/tests/RedisTestsSuite.php new file mode 100644 index 0000000..90da389 --- /dev/null +++ b/tests/RedisTestsSuite.php @@ -0,0 +1,27 @@ + + * @link http://netmonsters.ru + * @package Majestic + * @subpackage UnitTests + * @since 2011-12-02 + * + * Test set for Redis + */ + +require_once 'redis/RedisDebugTest.php'; +require_once 'redis/RedisManagerTest.php'; + +class PackageRedisTests +{ + public static function suite() + { + $suite = new PHPUnit_Framework_TestSuite('Redis'); + + $suite->addTestSuite('RedisDebugTest'); + $suite->addTestSuite('RedisManagerTest'); + + return $suite; + } +} \ No newline at end of file