Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
949dda5f
Commit
949dda5f
authored
Sep 14, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tagged tests with @group tags
parent
41bd9ab7
Hide whitespace changes
Inline
Side-by-side
Showing
66 changed files
with
189 additions
and
6 deletions
+189
-6
.travis.yml
.travis.yml
+2
-1
YiiBaseTest.php
tests/unit/framework/YiiBaseTest.php
+1
-0
BehaviorTest.php
tests/unit/framework/base/BehaviorTest.php
+3
-0
ComponentTest.php
tests/unit/framework/base/ComponentTest.php
+3
-0
FormatterTest.php
tests/unit/framework/base/FormatterTest.php
+1
-3
ModelTest.php
tests/unit/framework/base/ModelTest.php
+1
-1
ObjectTest.php
tests/unit/framework/base/ObjectTest.php
+1
-1
AutoTimestampTest.php
tests/unit/framework/behaviors/AutoTimestampTest.php
+2
-0
ApcCacheTest.php
tests/unit/framework/caching/ApcCacheTest.php
+2
-0
DbCacheTest.php
tests/unit/framework/caching/DbCacheTest.php
+2
-0
FileCacheTest.php
tests/unit/framework/caching/FileCacheTest.php
+1
-0
MemCacheTest.php
tests/unit/framework/caching/MemCacheTest.php
+2
-0
MemCachedTest.php
tests/unit/framework/caching/MemCachedTest.php
+2
-0
RedisCacheTest.php
tests/unit/framework/caching/RedisCacheTest.php
+2
-0
WinCacheTest.php
tests/unit/framework/caching/WinCacheTest.php
+2
-0
XCacheTest.php
tests/unit/framework/caching/XCacheTest.php
+2
-0
ZendDataCacheTest.php
tests/unit/framework/caching/ZendDataCacheTest.php
+2
-0
AssetControllerTest.php
...nit/framework/console/controllers/AssetControllerTest.php
+2
-0
MessageControllerTest.php
...t/framework/console/controllers/MessageControllerTest.php
+2
-0
ActiveDataProviderTest.php
tests/unit/framework/data/ActiveDataProviderTest.php
+2
-0
SortTest.php
tests/unit/framework/data/SortTest.php
+2
-0
ActiveRecordTest.php
tests/unit/framework/db/ActiveRecordTest.php
+4
-0
CommandTest.php
tests/unit/framework/db/CommandTest.php
+4
-0
ConnectionTest.php
tests/unit/framework/db/ConnectionTest.php
+4
-0
QueryBuilderTest.php
tests/unit/framework/db/QueryBuilderTest.php
+4
-0
QueryTest.php
tests/unit/framework/db/QueryTest.php
+4
-0
SchemaTest.php
tests/unit/framework/db/SchemaTest.php
+4
-0
CubridActiveRecordTest.php
tests/unit/framework/db/cubrid/CubridActiveRecordTest.php
+4
-0
CubridCommandTest.php
tests/unit/framework/db/cubrid/CubridCommandTest.php
+4
-0
CubridConnectionTest.php
tests/unit/framework/db/cubrid/CubridConnectionTest.php
+4
-0
CubridQueryBuilderTest.php
tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php
+4
-0
CubridQueryTest.php
tests/unit/framework/db/cubrid/CubridQueryTest.php
+4
-0
CubridSchemaTest.php
tests/unit/framework/db/cubrid/CubridSchemaTest.php
+4
-0
MssqlActiveRecordTest.php
tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
+4
-0
MssqlCommandTest.php
tests/unit/framework/db/mssql/MssqlCommandTest.php
+4
-0
MssqlConnectionTest.php
tests/unit/framework/db/mssql/MssqlConnectionTest.php
+4
-0
MssqlQueryTest.php
tests/unit/framework/db/mssql/MssqlQueryTest.php
+4
-0
PostgreSQLActiveRecordTest.php
tests/unit/framework/db/pgsql/PostgreSQLActiveRecordTest.php
+4
-0
PostgreSQLConnectionTest.php
tests/unit/framework/db/pgsql/PostgreSQLConnectionTest.php
+4
-0
PostgreSQLQueryBuilderTest.php
tests/unit/framework/db/pgsql/PostgreSQLQueryBuilderTest.php
+4
-0
SqliteActiveRecordTest.php
tests/unit/framework/db/sqlite/SqliteActiveRecordTest.php
+4
-0
SqliteCommandTest.php
tests/unit/framework/db/sqlite/SqliteCommandTest.php
+4
-0
SqliteConnectionTest.php
tests/unit/framework/db/sqlite/SqliteConnectionTest.php
+4
-0
SqliteQueryBuilderTest.php
tests/unit/framework/db/sqlite/SqliteQueryBuilderTest.php
+4
-0
SqliteQueryTest.php
tests/unit/framework/db/sqlite/SqliteQueryTest.php
+4
-0
SqliteSchemaTest.php
tests/unit/framework/db/sqlite/SqliteSchemaTest.php
+4
-0
ArrayHelperTest.php
tests/unit/framework/helpers/ArrayHelperTest.php
+3
-0
ConsoleTest.php
tests/unit/framework/helpers/ConsoleTest.php
+4
-0
FileHelperTest.php
tests/unit/framework/helpers/FileHelperTest.php
+1
-0
HtmlTest.php
tests/unit/framework/helpers/HtmlTest.php
+3
-0
InflectorTest.php
tests/unit/framework/helpers/InflectorTest.php
+3
-0
JsonTest.php
tests/unit/framework/helpers/JsonTest.php
+3
-0
StringHelperTest.php
tests/unit/framework/helpers/StringHelperTest.php
+1
-0
VarDumperTest.php
tests/unit/framework/helpers/VarDumperTest.php
+3
-0
FormatterTest.php
tests/unit/framework/i18n/FormatterTest.php
+1
-0
GettextMessageSourceTest.php
tests/unit/framework/i18n/GettextMessageSourceTest.php
+3
-0
GettextMoFileTest.php
tests/unit/framework/i18n/GettextMoFileTest.php
+3
-0
GettextPoFileTest.php
tests/unit/framework/i18n/GettextPoFileTest.php
+3
-0
PhpManagerTest.php
tests/unit/framework/rbac/PhpManagerTest.php
+3
-0
YiiRequirementCheckerTest.php
...unit/framework/requirements/YiiRequirementCheckerTest.php
+1
-0
EmailValidatorTest.php
tests/unit/framework/validators/EmailValidatorTest.php
+1
-0
ResponseTest.php
tests/unit/framework/web/ResponseTest.php
+3
-0
UrlManagerTest.php
tests/unit/framework/web/UrlManagerTest.php
+3
-0
UrlRuleTest.php
tests/unit/framework/web/UrlRuleTest.php
+3
-0
XmlResponseFormatterTest.php
tests/unit/framework/web/XmlResponseFormatterTest.php
+2
-0
SpacelessTest.php
tests/unit/framework/widgets/SpacelessTest.php
+3
-0
No files found.
.travis.yml
View file @
949dda5f
...
...
@@ -16,7 +16,7 @@ before_script:
-
tests/unit/data/travis/cubrid-setup.sh
script
:
-
phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose
-
phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose
--exclude-group mssql,oci,wincache,xcache,zenddata
after_script
:
-
php vendor/bin/coveralls
\ No newline at end of file
tests/unit/framework/YiiBaseTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,7 @@ use yiiunit\TestCase;
/**
* YiiBaseTest
* @group base
*/
class
YiiBaseTest
extends
TestCase
{
...
...
tests/unit/framework/base/BehaviorTest.php
View file @
949dda5f
...
...
@@ -46,6 +46,9 @@ class BarBehavior extends Behavior
}
}
/**
* @group base
*/
class
BehaviorTest
extends
TestCase
{
protected
function
setUp
()
...
...
tests/unit/framework/base/ComponentTest.php
View file @
949dda5f
...
...
@@ -17,6 +17,9 @@ function globalEventHandler2($event)
$event
->
handled
=
true
;
}
/**
* @group base
*/
class
ComponentTest
extends
TestCase
{
/**
...
...
tests/unit/framework/base/FormatterTest.php
View file @
949dda5f
...
...
@@ -10,9 +10,7 @@ use yii\base\Formatter;
use
yiiunit\TestCase
;
/**
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
* @group base
*/
class
FormatterTest
extends
TestCase
{
...
...
tests/unit/framework/base/ModelTest.php
View file @
949dda5f
...
...
@@ -9,7 +9,7 @@ use yiiunit\data\base\Singer;
use
yiiunit\data\base\InvalidRulesModel
;
/**
*
ModelTest
*
@group base
*/
class
ModelTest
extends
TestCase
{
...
...
tests/unit/framework/base/ObjectTest.php
View file @
949dda5f
...
...
@@ -5,7 +5,7 @@ use yii\base\Object;
use
yiiunit\TestCase
;
/**
*
ObjectTest
*
@group base
*/
class
ObjectTest
extends
TestCase
{
...
...
tests/unit/framework/behaviors/AutoTimestampTest.php
View file @
949dda5f
...
...
@@ -11,6 +11,8 @@ use yii\behaviors\AutoTimestamp;
/**
* Unit test for [[\yii\behaviors\AutoTimestamp]].
* @see AutoTimestamp
*
* @group behaviors
*/
class
AutoTimestampTest
extends
TestCase
{
...
...
tests/unit/framework/caching/ApcCacheTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,8 @@ use yii\caching\ApcCache;
/**
* Class for testing APC cache backend
* @group apc
* @group caching
*/
class
ApcCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/DbCacheTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,8 @@ use yii\caching\DbCache;
/**
* Class for testing file cache backend
* @group db
* @group caching
*/
class
DbCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/FileCacheTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,7 @@ use yii\caching\FileCache;
/**
* Class for testing file cache backend
* @group caching
*/
class
FileCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/MemCacheTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,8 @@ use yii\caching\MemCache;
/**
* Class for testing memcache cache backend
* @group memcache
* @group caching
*/
class
MemCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/MemCachedTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,8 @@ use yii\caching\MemCache;
/**
* Class for testing memcached cache backend
* @group memcached
* @group caching
*/
class
MemCachedTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/RedisCacheTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,8 @@ use yiiunit\TestCase;
/**
* Class for testing redis cache backend
* @group redis
* @group caching
*/
class
RedisCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/WinCacheTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,8 @@ use yii\caching\WinCache;
/**
* Class for testing wincache backend
* @group wincache
* @group caching
*/
class
WinCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/XCacheTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,8 @@ use yii\caching\XCache;
/**
* Class for testing xcache backend
* @group xcache
* @group caching
*/
class
XCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/caching/ZendDataCacheTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,8 @@ use yii\caching\ZendDataCache;
/**
* Class for testing Zend cache backend
* @group zenddata
* @group caching
*/
class
ZendDataCacheTest
extends
CacheTestCase
{
...
...
tests/unit/framework/console/controllers/AssetControllerTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,8 @@ use yii\console\controllers\AssetController;
/**
* Unit test for [[\yii\console\controllers\AssetController]].
* @see AssetController
*
* @group console
*/
class
AssetControllerTest
extends
TestCase
{
...
...
tests/unit/framework/console/controllers/MessageControllerTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,8 @@ use yii\console\controllers\MessageController;
/**
* Unit test for [[\yii\console\controllers\MessageController]].
* @see MessageController
*
* @group console
*/
class
MessageControllerTest
extends
TestCase
{
...
...
tests/unit/framework/data/ActiveDataProviderTest.php
View file @
949dda5f
...
...
@@ -16,6 +16,8 @@ use yiiunit\data\ar\Order;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*
* @group data
*/
class
ActiveDataProviderTest
extends
DatabaseTestCase
{
...
...
tests/unit/framework/data/SortTest.php
View file @
949dda5f
...
...
@@ -14,6 +14,8 @@ use yii\data\Sort;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*
* @group data
*/
class
SortTest
extends
TestCase
{
...
...
tests/unit/framework/db/ActiveRecordTest.php
View file @
949dda5f
...
...
@@ -9,6 +9,10 @@ use yiiunit\data\ar\OrderItem;
use
yiiunit\data\ar\Order
;
use
yiiunit\data\ar\Item
;
/**
* @group db
* @group mysql
*/
class
ActiveRecordTest
extends
DatabaseTestCase
{
protected
function
setUp
()
...
...
tests/unit/framework/db/CommandTest.php
View file @
949dda5f
...
...
@@ -7,6 +7,10 @@ use yii\db\Command;
use
yii\db\Query
;
use
yii\db\DataReader
;
/**
* @group db
* @group mysql
*/
class
CommandTest
extends
DatabaseTestCase
{
public
function
testConstruct
()
...
...
tests/unit/framework/db/ConnectionTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,10 @@ namespace yiiunit\framework\db;
use
yii\db\Connection
;
/**
* @group db
* @group mysql
*/
class
ConnectionTest
extends
DatabaseTestCase
{
public
function
testConstruct
()
...
...
tests/unit/framework/db/QueryBuilderTest.php
View file @
949dda5f
...
...
@@ -10,6 +10,10 @@ use yii\db\mssql\QueryBuilder as MssqlQueryBuilder;
use
yii\db\pgsql\QueryBuilder
as
PgsqlQueryBuilder
;
use
yii\db\cubrid\QueryBuilder
as
CubridQueryBuilder
;
/**
* @group db
* @group mysql
*/
class
QueryBuilderTest
extends
DatabaseTestCase
{
/**
...
...
tests/unit/framework/db/QueryTest.php
View file @
949dda5f
...
...
@@ -7,6 +7,10 @@ use yii\db\Command;
use
yii\db\Query
;
use
yii\db\DataReader
;
/**
* @group db
* @group mysql
*/
class
QueryTest
extends
DatabaseTestCase
{
public
function
testSelect
()
...
...
tests/unit/framework/db/SchemaTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,10 @@ namespace yiiunit\framework\db;
use
yii\caching\FileCache
;
use
yii\db\Schema
;
/**
* @group db
* @group mysql
*/
class
SchemaTest
extends
DatabaseTestCase
{
...
...
tests/unit/framework/db/cubrid/CubridActiveRecordTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use
yiiunit\framework\db\ActiveRecordTest
;
/**
* @group db
* @group cubrid
*/
class
CubridActiveRecordTest
extends
ActiveRecordTest
{
public
$driverName
=
'cubrid'
;
...
...
tests/unit/framework/db/cubrid/CubridCommandTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use
yiiunit\framework\db\CommandTest
;
/**
* @group db
* @group cubrid
*/
class
CubridCommandTest
extends
CommandTest
{
public
$driverName
=
'cubrid'
;
...
...
tests/unit/framework/db/cubrid/CubridConnectionTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use
yiiunit\framework\db\ConnectionTest
;
/**
* @group db
* @group cubrid
*/
class
CubridConnectionTest
extends
ConnectionTest
{
public
$driverName
=
'cubrid'
;
...
...
tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,10 @@ use yii\base\NotSupportedException;
use
yii\db\sqlite\Schema
;
use
yiiunit\framework\db\QueryBuilderTest
;
/**
* @group db
* @group cubrid
*/
class
CubridQueryBuilderTest
extends
QueryBuilderTest
{
public
$driverName
=
'cubrid'
;
...
...
tests/unit/framework/db/cubrid/CubridQueryTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use
yiiunit\framework\db\QueryTest
;
/**
* @group db
* @group cubrid
*/
class
CubridQueryTest
extends
QueryTest
{
public
$driverName
=
'cubrid'
;
...
...
tests/unit/framework/db/cubrid/CubridSchemaTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use
yiiunit\framework\db\SchemaTest
;
/**
* @group db
* @group cubrid
*/
class
CubridSchemaTest
extends
SchemaTest
{
public
$driverName
=
'cubrid'
;
...
...
tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use
yiiunit\framework\db\ActiveRecordTest
;
/**
* @group db
* @group mssql
*/
class
MssqlActiveRecordTest
extends
ActiveRecordTest
{
protected
$driverName
=
'sqlsrv'
;
...
...
tests/unit/framework/db/mssql/MssqlCommandTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use
yiiunit\framework\db\CommandTest
;
/**
* @group db
* @group mssql
*/
class
MssqlCommandTest
extends
CommandTest
{
protected
$driverName
=
'sqlsrv'
;
...
...
tests/unit/framework/db/mssql/MssqlConnectionTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use
yiiunit\framework\db\ConnectionTest
;
/**
* @group db
* @group mssql
*/
class
MssqlConnectionTest
extends
ConnectionTest
{
protected
$driverName
=
'sqlsrv'
;
...
...
tests/unit/framework/db/mssql/MssqlQueryTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use
yiiunit\framework\db\QueryTest
;
/**
* @group db
* @group mssql
*/
class
MssqlQueryTest
extends
QueryTest
{
protected
$driverName
=
'sqlsrv'
;
...
...
tests/unit/framework/db/pgsql/PostgreSQLActiveRecordTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,10 @@ namespace yiiunit\framework\db\pgsql;
use
yiiunit\framework\db\ActiveRecordTest
;
/**
* @group db
* @group pgsql
*/
class
PostgreSQLActiveRecordTest
extends
ActiveRecordTest
{
protected
$driverName
=
'pgsql'
;
...
...
tests/unit/framework/db/pgsql/PostgreSQLConnectionTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\pgsql;
use
yiiunit\framework\db\ConnectionTest
;
/**
* @group db
* @group pgsql
*/
class
PostgreSQLConnectionTest
extends
ConnectionTest
{
protected
$driverName
=
'pgsql'
;
...
...
tests/unit/framework/db/pgsql/PostgreSQLQueryBuilderTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,10 @@ namespace yiiunit\framework\db\pgsql;
use
yii\db\pgsql\Schema
;
use
yiiunit\framework\db\QueryBuilderTest
;
/**
* @group db
* @group pgsql
*/
class
PostgreSQLQueryBuilderTest
extends
QueryBuilderTest
{
public
$driverName
=
'pgsql'
;
...
...
tests/unit/framework/db/sqlite/SqliteActiveRecordTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use
yiiunit\framework\db\ActiveRecordTest
;
/**
* @group db
* @group sqlite
*/
class
SqliteActiveRecordTest
extends
ActiveRecordTest
{
protected
$driverName
=
'sqlite'
;
...
...
tests/unit/framework/db/sqlite/SqliteCommandTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use
yiiunit\framework\db\CommandTest
;
/**
* @group db
* @group sqlite
*/
class
SqliteCommandTest
extends
CommandTest
{
protected
$driverName
=
'sqlite'
;
...
...
tests/unit/framework/db/sqlite/SqliteConnectionTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use
yiiunit\framework\db\ConnectionTest
;
/**
* @group db
* @group sqlite
*/
class
SqliteConnectionTest
extends
ConnectionTest
{
protected
$driverName
=
'sqlite'
;
...
...
tests/unit/framework/db/sqlite/SqliteQueryBuilderTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,10 @@ namespace yiiunit\framework\db\sqlite;
use
yii\db\sqlite\Schema
;
use
yiiunit\framework\db\QueryBuilderTest
;
/**
* @group db
* @group sqlite
*/
class
SqliteQueryBuilderTest
extends
QueryBuilderTest
{
protected
$driverName
=
'sqlite'
;
...
...
tests/unit/framework/db/sqlite/SqliteQueryTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use
yiiunit\framework\db\QueryTest
;
/**
* @group db
* @group sqlite
*/
class
SqliteQueryTest
extends
QueryTest
{
protected
$driverName
=
'sqlite'
;
...
...
tests/unit/framework/db/sqlite/SqliteSchemaTest.php
View file @
949dda5f
...
...
@@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use
yiiunit\framework\db\SchemaTest
;
/**
* @group db
* @group sqlite
*/
class
SqliteSchemaTest
extends
SchemaTest
{
protected
$driverName
=
'sqlite'
;
...
...
tests/unit/framework/helpers/ArrayHelperTest.php
View file @
949dda5f
...
...
@@ -35,6 +35,9 @@ class Post3 extends Object
}
}
/**
* @group helpers
*/
class
ArrayHelperTest
extends
TestCase
{
public
function
testToArray
()
...
...
tests/unit/framework/helpers/ConsoleTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,10 @@ use Yii;
use
yii\helpers\Console
;
use
yiiunit\TestCase
;
/**
* @group helpers
* @group console
*/
class
ConsoleTest
extends
TestCase
{
public
function
testStripAnsiFormat
()
...
...
tests/unit/framework/helpers/FileHelperTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,7 @@ use yii\test\TestCase;
/**
* Unit test for [[yii\helpers\FileHelper]]
* @see FileHelper
* @group helpers
*/
class
FileHelperTest
extends
TestCase
{
...
...
tests/unit/framework/helpers/HtmlTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,9 @@ use Yii;
use
yii\helpers\Html
;
use
yiiunit\TestCase
;
/**
* @group helpers
*/
class
HtmlTest
extends
TestCase
{
protected
function
setUp
()
...
...
tests/unit/framework/helpers/InflectorTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,9 @@ use Yii;
use
yii\helpers\Inflector
;
use
yiiunit\TestCase
;
/**
* @group helpers
*/
class
InflectorTest
extends
TestCase
{
public
function
testPluralize
()
...
...
tests/unit/framework/helpers/JsonTest.php
View file @
949dda5f
...
...
@@ -7,6 +7,9 @@ use yii\helpers\Json;
use
yii\test\TestCase
;
use
yii\web\JsExpression
;
/**
* @group helpers
*/
class
JsonTest
extends
TestCase
{
public
function
testEncode
()
...
...
tests/unit/framework/helpers/StringHelperTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,7 @@ use yii\test\TestCase;
/**
* StringHelperTest
* @group helpers
*/
class
StringHelperTest
extends
TestCase
{
...
...
tests/unit/framework/helpers/VarDumperTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,9 @@ namespace yiiunit\framework\helpers;
use
\yii\helpers\VarDumper
;
use
yii\test\TestCase
;
/**
* @group helpers
*/
class
VarDumperTest
extends
TestCase
{
public
function
testDumpObject
()
...
...
tests/unit/framework/i18n/FormatterTest.php
View file @
949dda5f
...
...
@@ -13,6 +13,7 @@ use yiiunit\TestCase;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
* @group i18n
*/
class
FormatterTest
extends
TestCase
{
...
...
tests/unit/framework/i18n/GettextMessageSourceTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use
yii\i18n\GettextMessageSource
;
use
yiiunit\TestCase
;
/**
* @group i18n
*/
class
GettextMessageSourceTest
extends
TestCase
{
public
function
testLoadMessages
()
...
...
tests/unit/framework/i18n/GettextMoFileTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use
yii\i18n\GettextMoFile
;
use
yiiunit\TestCase
;
/**
* @group i18n
*/
class
GettextMoFileTest
extends
TestCase
{
public
function
testLoad
()
...
...
tests/unit/framework/i18n/GettextPoFileTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use
yii\i18n\GettextPoFile
;
use
yiiunit\TestCase
;
/**
* @group i18n
*/
class
GettextPoFileTest
extends
TestCase
{
public
function
testLoad
()
...
...
tests/unit/framework/rbac/PhpManagerTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,9 @@ namespace yiiunit\framework\rbac;
use
Yii
;
use
yii\rbac\PhpManager
;
/**
* @group rbac
*/
class
PhpManagerTest
extends
ManagerTestCase
{
protected
function
setUp
()
...
...
tests/unit/framework/requirements/YiiRequirementCheckerTest.php
View file @
949dda5f
...
...
@@ -7,6 +7,7 @@ use yiiunit\TestCase;
/**
* Test case for [[YiiRequirementChecker]].
* @see YiiRequirementChecker
* @group requirements
*/
class
YiiRequirementCheckerTest
extends
TestCase
{
...
...
tests/unit/framework/validators/EmailValidatorTest.php
View file @
949dda5f
...
...
@@ -6,6 +6,7 @@ use yiiunit\TestCase;
/**
* EmailValidatorTest
* @group validators
*/
class
EmailValidatorTest
extends
TestCase
{
...
...
tests/unit/framework/web/ResponseTest.php
View file @
949dda5f
...
...
@@ -13,6 +13,9 @@ class MockResponse extends \yii\web\Response
}
}
/**
* @group web
*/
class
ResponseTest
extends
\yiiunit\TestCase
{
/**
...
...
tests/unit/framework/web/UrlManagerTest.php
View file @
949dda5f
...
...
@@ -5,6 +5,9 @@ use yii\web\Request;
use
yii\web\UrlManager
;
use
yiiunit\TestCase
;
/**
* @group web
*/
class
UrlManagerTest
extends
TestCase
{
protected
function
setUp
()
...
...
tests/unit/framework/web/UrlRuleTest.php
View file @
949dda5f
...
...
@@ -7,6 +7,9 @@ use yii\web\UrlRule;
use
yii\web\Request
;
use
yiiunit\TestCase
;
/**
* @group web
*/
class
UrlRuleTest
extends
TestCase
{
public
function
testCreateUrl
()
...
...
tests/unit/framework/web/XmlResponseFormatterTest.php
View file @
949dda5f
...
...
@@ -26,6 +26,8 @@ class Post extends Object
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*
* @group web
*/
class
XmlResponseFormatterTest
extends
\yiiunit\TestCase
{
...
...
tests/unit/framework/widgets/SpacelessTest.php
View file @
949dda5f
...
...
@@ -4,6 +4,9 @@ namespace yiiunit\framework\widgets;
use
yii\widgets\Spaceless
;
/**
* @group widgets
*/
class
SpacelessTest
extends
\yiiunit\TestCase
{
public
function
testWidget
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment