Created test suites for Mysql and Redis
This commit is contained in:
28
tests/MySQLTestsSuite.php
Normal file
28
tests/MySQLTestsSuite.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright NetMonsters <team@netmonsters.ru>
|
||||
* @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;
|
||||
}
|
||||
}
|
27
tests/RedisTestsSuite.php
Normal file
27
tests/RedisTestsSuite.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright NetMonsters <team@netmonsters.ru>
|
||||
* @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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user