Anton Grebnev
13 years ago
72 changed files with 575 additions and 441 deletions
-
1.gitignore
-
2Config.php
-
2app/router/Route.php
-
2cache/Cacher.php
-
2cache/MemcacheCache.php
-
12exception/InitializationException.php
-
2form/Form.php
-
6form/FormField.php
-
2form/FormViewHelper.php
-
4i18n/I18N.php
-
7model/Db.php
-
2model/DbDriver.php
-
4model/DbStatement.php
-
2model/MySQLiDriver.php
-
4model/MySQLiStatement.php
-
6redis/RedisDebug.php
-
11redis/RedisManager.php
-
13tests/ConfigTest.php
-
10tests/LoadTest.php
-
28tests/MySQLTestsSuite.php
-
27tests/RedisTestsSuite.php
-
13tests/RegistryTest.php
-
6tests/app/ActionTest.php
-
8tests/app/AjaxActionTest.php
-
14tests/app/ErrorActionTest.php
-
6tests/app/FrontControllerTest.php
-
24tests/app/PagerActionTest.php
-
4tests/app/StaticActionTest.php
-
17tests/app/router/RouteTest.php
-
16tests/app/router/RouterTest.php
-
4tests/cache/CacheKeyTest.php
-
6tests/cache/CacherTest.php
-
22tests/cache/MemcacheCacheTest.php
-
8tests/captcha/CaptchaTest.php
-
4tests/captcha/CaptchaValidatorTest.php
-
48tests/classes/EnvTest.php
-
74tests/classes/FormatTest.php
-
11tests/exception/Error404ExceptionTest.php
-
13tests/exception/ErrorHandlerTest.php
-
11tests/exception/GeneralExceptionTest.php
-
28tests/exception/InitializationExceptionTest.php
-
11tests/form/FormFieldTest.php
-
6tests/form/FormTest.php
-
8tests/form/FormViewHelperTest.php
-
22tests/i18n/I18NTest.php
-
8tests/layout/LayoutTest.php
-
7tests/logger/FileLoggerTest.php
-
3tests/model/DbExprTest.php
-
9tests/model/DbStatementTest.php
-
31tests/model/DbTest.php
-
60tests/model/MySQLiDriverTest.php
-
40tests/model/MySQLiStatementTest.php
-
41tests/model/SqlDbDriverTest.php
-
23tests/model/SqlModelTest.php
-
25tests/phpunit.xml
-
16tests/redis/RedisDebugTest.php
-
31tests/redis/RedisManagerTest.php
-
22tests/session/SessionTest.php
-
8tests/util/AutoloadBuilderTest.php
-
4tests/util/AutoloadBuilderTestVFS.php
-
4tests/util/profiler/CommandProfilerTest.php
-
5tests/util/profiler/ProfilerTest.php
-
6tests/validator/EqualValidatorTest.php
-
18tests/validator/RegexValidatorTest.php
-
23tests/view/PHPViewTest.php
-
12tests/view/helpers/GetViewHelperTest.php
-
9tests/view/helpers/MsgViewHelperTest.php
-
2validator/EqualValidator.php
-
2validator/RegexValidator.php
-
2validator/Validator.php
-
4view/PHPView.php
-
2view/helpers/MsgViewHelper.php
@ -0,0 +1,12 @@ |
|||||
|
<?php |
||||
|
/** |
||||
|
* @copyright NetMonsters <team@netmonsters.ru> |
||||
|
* @link http://netmonsters.ru |
||||
|
* @package Majestic |
||||
|
* @subpackage exception |
||||
|
* @since 2011-11-24 |
||||
|
* |
||||
|
* Exception from initializtion object |
||||
|
*/ |
||||
|
|
||||
|
class InitializationException extends Exception {} |
@ -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; |
||||
|
} |
||||
|
} |
@ -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; |
||||
|
} |
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
<?php |
||||
|
|
||||
|
/* |
||||
|
* @copyright NetMonsters <team@netmonsters.ru> |
||||
|
* @link http://netmonsters.ru |
||||
|
* @package Majestic |
||||
|
* @subpackage UnitTests |
||||
|
* @since 2011-11-24 |
||||
|
* |
||||
|
* Unit tests for InitializationException class |
||||
|
*/ |
||||
|
|
||||
|
require_once dirname(__FILE__) . '/../../exception/InitializationException.php'; |
||||
|
|
||||
|
class InitializationExceptionTest extends PHPUnit_Framework_TestCase |
||||
|
{ |
||||
|
public function testInitializationException() |
||||
|
{ |
||||
|
$this->setExpectedException('InitializationException'); |
||||
|
throw new InitializationException(); |
||||
|
} |
||||
|
|
||||
|
public function testInitializationExceptionMessage() |
||||
|
{ |
||||
|
$this->setExpectedException('InitializationException', 'InitializationException message', 1); |
||||
|
throw new InitializationException('InitializationException message', 1); |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue