Browse Source

tagged tests with @group tags

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
949dda5fdb
  1. 2
      .travis.yml
  2. 1
      tests/unit/framework/YiiBaseTest.php
  3. 3
      tests/unit/framework/base/BehaviorTest.php
  4. 3
      tests/unit/framework/base/ComponentTest.php
  5. 4
      tests/unit/framework/base/FormatterTest.php
  6. 2
      tests/unit/framework/base/ModelTest.php
  7. 2
      tests/unit/framework/base/ObjectTest.php
  8. 2
      tests/unit/framework/behaviors/AutoTimestampTest.php
  9. 2
      tests/unit/framework/caching/ApcCacheTest.php
  10. 2
      tests/unit/framework/caching/DbCacheTest.php
  11. 1
      tests/unit/framework/caching/FileCacheTest.php
  12. 2
      tests/unit/framework/caching/MemCacheTest.php
  13. 2
      tests/unit/framework/caching/MemCachedTest.php
  14. 2
      tests/unit/framework/caching/RedisCacheTest.php
  15. 2
      tests/unit/framework/caching/WinCacheTest.php
  16. 2
      tests/unit/framework/caching/XCacheTest.php
  17. 2
      tests/unit/framework/caching/ZendDataCacheTest.php
  18. 2
      tests/unit/framework/console/controllers/AssetControllerTest.php
  19. 2
      tests/unit/framework/console/controllers/MessageControllerTest.php
  20. 2
      tests/unit/framework/data/ActiveDataProviderTest.php
  21. 2
      tests/unit/framework/data/SortTest.php
  22. 4
      tests/unit/framework/db/ActiveRecordTest.php
  23. 4
      tests/unit/framework/db/CommandTest.php
  24. 4
      tests/unit/framework/db/ConnectionTest.php
  25. 4
      tests/unit/framework/db/QueryBuilderTest.php
  26. 4
      tests/unit/framework/db/QueryTest.php
  27. 4
      tests/unit/framework/db/SchemaTest.php
  28. 4
      tests/unit/framework/db/cubrid/CubridActiveRecordTest.php
  29. 4
      tests/unit/framework/db/cubrid/CubridCommandTest.php
  30. 4
      tests/unit/framework/db/cubrid/CubridConnectionTest.php
  31. 4
      tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php
  32. 4
      tests/unit/framework/db/cubrid/CubridQueryTest.php
  33. 4
      tests/unit/framework/db/cubrid/CubridSchemaTest.php
  34. 4
      tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
  35. 4
      tests/unit/framework/db/mssql/MssqlCommandTest.php
  36. 4
      tests/unit/framework/db/mssql/MssqlConnectionTest.php
  37. 4
      tests/unit/framework/db/mssql/MssqlQueryTest.php
  38. 4
      tests/unit/framework/db/pgsql/PostgreSQLActiveRecordTest.php
  39. 4
      tests/unit/framework/db/pgsql/PostgreSQLConnectionTest.php
  40. 4
      tests/unit/framework/db/pgsql/PostgreSQLQueryBuilderTest.php
  41. 4
      tests/unit/framework/db/sqlite/SqliteActiveRecordTest.php
  42. 4
      tests/unit/framework/db/sqlite/SqliteCommandTest.php
  43. 4
      tests/unit/framework/db/sqlite/SqliteConnectionTest.php
  44. 4
      tests/unit/framework/db/sqlite/SqliteQueryBuilderTest.php
  45. 4
      tests/unit/framework/db/sqlite/SqliteQueryTest.php
  46. 4
      tests/unit/framework/db/sqlite/SqliteSchemaTest.php
  47. 3
      tests/unit/framework/helpers/ArrayHelperTest.php
  48. 4
      tests/unit/framework/helpers/ConsoleTest.php
  49. 1
      tests/unit/framework/helpers/FileHelperTest.php
  50. 3
      tests/unit/framework/helpers/HtmlTest.php
  51. 3
      tests/unit/framework/helpers/InflectorTest.php
  52. 3
      tests/unit/framework/helpers/JsonTest.php
  53. 1
      tests/unit/framework/helpers/StringHelperTest.php
  54. 3
      tests/unit/framework/helpers/VarDumperTest.php
  55. 1
      tests/unit/framework/i18n/FormatterTest.php
  56. 3
      tests/unit/framework/i18n/GettextMessageSourceTest.php
  57. 3
      tests/unit/framework/i18n/GettextMoFileTest.php
  58. 3
      tests/unit/framework/i18n/GettextPoFileTest.php
  59. 3
      tests/unit/framework/rbac/PhpManagerTest.php
  60. 1
      tests/unit/framework/requirements/YiiRequirementCheckerTest.php
  61. 1
      tests/unit/framework/validators/EmailValidatorTest.php
  62. 3
      tests/unit/framework/web/ResponseTest.php
  63. 3
      tests/unit/framework/web/UrlManagerTest.php
  64. 3
      tests/unit/framework/web/UrlRuleTest.php
  65. 2
      tests/unit/framework/web/XmlResponseFormatterTest.php
  66. 3
      tests/unit/framework/widgets/SpacelessTest.php

2
.travis.yml

@ -16,7 +16,7 @@ before_script:
- tests/unit/data/travis/cubrid-setup.sh - tests/unit/data/travis/cubrid-setup.sh
script: 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: after_script:
- php vendor/bin/coveralls - php vendor/bin/coveralls

1
tests/unit/framework/YiiBaseTest.php

@ -6,6 +6,7 @@ use yiiunit\TestCase;
/** /**
* YiiBaseTest * YiiBaseTest
* @group base
*/ */
class YiiBaseTest extends TestCase class YiiBaseTest extends TestCase
{ {

3
tests/unit/framework/base/BehaviorTest.php

@ -46,6 +46,9 @@ class BarBehavior extends Behavior
} }
} }
/**
* @group base
*/
class BehaviorTest extends TestCase class BehaviorTest extends TestCase
{ {
protected function setUp() protected function setUp()

3
tests/unit/framework/base/ComponentTest.php

@ -17,6 +17,9 @@ function globalEventHandler2($event)
$event->handled = true; $event->handled = true;
} }
/**
* @group base
*/
class ComponentTest extends TestCase class ComponentTest extends TestCase
{ {
/** /**

4
tests/unit/framework/base/FormatterTest.php

@ -10,9 +10,7 @@ use yii\base\Formatter;
use yiiunit\TestCase; use yiiunit\TestCase;
/** /**
* * @group base
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/ */
class FormatterTest extends TestCase class FormatterTest extends TestCase
{ {

2
tests/unit/framework/base/ModelTest.php

@ -9,7 +9,7 @@ use yiiunit\data\base\Singer;
use yiiunit\data\base\InvalidRulesModel; use yiiunit\data\base\InvalidRulesModel;
/** /**
* ModelTest * @group base
*/ */
class ModelTest extends TestCase class ModelTest extends TestCase
{ {

2
tests/unit/framework/base/ObjectTest.php

@ -5,7 +5,7 @@ use yii\base\Object;
use yiiunit\TestCase; use yiiunit\TestCase;
/** /**
* ObjectTest * @group base
*/ */
class ObjectTest extends TestCase class ObjectTest extends TestCase
{ {

2
tests/unit/framework/behaviors/AutoTimestampTest.php

@ -11,6 +11,8 @@ use yii\behaviors\AutoTimestamp;
/** /**
* Unit test for [[\yii\behaviors\AutoTimestamp]]. * Unit test for [[\yii\behaviors\AutoTimestamp]].
* @see AutoTimestamp * @see AutoTimestamp
*
* @group behaviors
*/ */
class AutoTimestampTest extends TestCase class AutoTimestampTest extends TestCase
{ {

2
tests/unit/framework/caching/ApcCacheTest.php

@ -5,6 +5,8 @@ use yii\caching\ApcCache;
/** /**
* Class for testing APC cache backend * Class for testing APC cache backend
* @group apc
* @group caching
*/ */
class ApcCacheTest extends CacheTestCase class ApcCacheTest extends CacheTestCase
{ {

2
tests/unit/framework/caching/DbCacheTest.php

@ -6,6 +6,8 @@ use yii\caching\DbCache;
/** /**
* Class for testing file cache backend * Class for testing file cache backend
* @group db
* @group caching
*/ */
class DbCacheTest extends CacheTestCase class DbCacheTest extends CacheTestCase
{ {

1
tests/unit/framework/caching/FileCacheTest.php

@ -5,6 +5,7 @@ use yii\caching\FileCache;
/** /**
* Class for testing file cache backend * Class for testing file cache backend
* @group caching
*/ */
class FileCacheTest extends CacheTestCase class FileCacheTest extends CacheTestCase
{ {

2
tests/unit/framework/caching/MemCacheTest.php

@ -5,6 +5,8 @@ use yii\caching\MemCache;
/** /**
* Class for testing memcache cache backend * Class for testing memcache cache backend
* @group memcache
* @group caching
*/ */
class MemCacheTest extends CacheTestCase class MemCacheTest extends CacheTestCase
{ {

2
tests/unit/framework/caching/MemCachedTest.php

@ -5,6 +5,8 @@ use yii\caching\MemCache;
/** /**
* Class for testing memcached cache backend * Class for testing memcached cache backend
* @group memcached
* @group caching
*/ */
class MemCachedTest extends CacheTestCase class MemCachedTest extends CacheTestCase
{ {

2
tests/unit/framework/caching/RedisCacheTest.php

@ -6,6 +6,8 @@ use yiiunit\TestCase;
/** /**
* Class for testing redis cache backend * Class for testing redis cache backend
* @group redis
* @group caching
*/ */
class RedisCacheTest extends CacheTestCase class RedisCacheTest extends CacheTestCase
{ {

2
tests/unit/framework/caching/WinCacheTest.php

@ -5,6 +5,8 @@ use yii\caching\WinCache;
/** /**
* Class for testing wincache backend * Class for testing wincache backend
* @group wincache
* @group caching
*/ */
class WinCacheTest extends CacheTestCase class WinCacheTest extends CacheTestCase
{ {

2
tests/unit/framework/caching/XCacheTest.php

@ -5,6 +5,8 @@ use yii\caching\XCache;
/** /**
* Class for testing xcache backend * Class for testing xcache backend
* @group xcache
* @group caching
*/ */
class XCacheTest extends CacheTestCase class XCacheTest extends CacheTestCase
{ {

2
tests/unit/framework/caching/ZendDataCacheTest.php

@ -6,6 +6,8 @@ use yii\caching\ZendDataCache;
/** /**
* Class for testing Zend cache backend * Class for testing Zend cache backend
* @group zenddata
* @group caching
*/ */
class ZendDataCacheTest extends CacheTestCase class ZendDataCacheTest extends CacheTestCase
{ {

2
tests/unit/framework/console/controllers/AssetControllerTest.php

@ -6,6 +6,8 @@ use yii\console\controllers\AssetController;
/** /**
* Unit test for [[\yii\console\controllers\AssetController]]. * Unit test for [[\yii\console\controllers\AssetController]].
* @see AssetController * @see AssetController
*
* @group console
*/ */
class AssetControllerTest extends TestCase class AssetControllerTest extends TestCase
{ {

2
tests/unit/framework/console/controllers/MessageControllerTest.php

@ -6,6 +6,8 @@ use yii\console\controllers\MessageController;
/** /**
* Unit test for [[\yii\console\controllers\MessageController]]. * Unit test for [[\yii\console\controllers\MessageController]].
* @see MessageController * @see MessageController
*
* @group console
*/ */
class MessageControllerTest extends TestCase class MessageControllerTest extends TestCase
{ {

2
tests/unit/framework/data/ActiveDataProviderTest.php

@ -16,6 +16,8 @@ use yiiunit\data\ar\Order;
/** /**
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @group data
*/ */
class ActiveDataProviderTest extends DatabaseTestCase class ActiveDataProviderTest extends DatabaseTestCase
{ {

2
tests/unit/framework/data/SortTest.php

@ -14,6 +14,8 @@ use yii\data\Sort;
/** /**
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @group data
*/ */
class SortTest extends TestCase class SortTest extends TestCase
{ {

4
tests/unit/framework/db/ActiveRecordTest.php

@ -9,6 +9,10 @@ use yiiunit\data\ar\OrderItem;
use yiiunit\data\ar\Order; use yiiunit\data\ar\Order;
use yiiunit\data\ar\Item; use yiiunit\data\ar\Item;
/**
* @group db
* @group mysql
*/
class ActiveRecordTest extends DatabaseTestCase class ActiveRecordTest extends DatabaseTestCase
{ {
protected function setUp() protected function setUp()

4
tests/unit/framework/db/CommandTest.php

@ -7,6 +7,10 @@ use yii\db\Command;
use yii\db\Query; use yii\db\Query;
use yii\db\DataReader; use yii\db\DataReader;
/**
* @group db
* @group mysql
*/
class CommandTest extends DatabaseTestCase class CommandTest extends DatabaseTestCase
{ {
public function testConstruct() public function testConstruct()

4
tests/unit/framework/db/ConnectionTest.php

@ -4,6 +4,10 @@ namespace yiiunit\framework\db;
use yii\db\Connection; use yii\db\Connection;
/**
* @group db
* @group mysql
*/
class ConnectionTest extends DatabaseTestCase class ConnectionTest extends DatabaseTestCase
{ {
public function testConstruct() public function testConstruct()

4
tests/unit/framework/db/QueryBuilderTest.php

@ -10,6 +10,10 @@ use yii\db\mssql\QueryBuilder as MssqlQueryBuilder;
use yii\db\pgsql\QueryBuilder as PgsqlQueryBuilder; use yii\db\pgsql\QueryBuilder as PgsqlQueryBuilder;
use yii\db\cubrid\QueryBuilder as CubridQueryBuilder; use yii\db\cubrid\QueryBuilder as CubridQueryBuilder;
/**
* @group db
* @group mysql
*/
class QueryBuilderTest extends DatabaseTestCase class QueryBuilderTest extends DatabaseTestCase
{ {
/** /**

4
tests/unit/framework/db/QueryTest.php

@ -7,6 +7,10 @@ use yii\db\Command;
use yii\db\Query; use yii\db\Query;
use yii\db\DataReader; use yii\db\DataReader;
/**
* @group db
* @group mysql
*/
class QueryTest extends DatabaseTestCase class QueryTest extends DatabaseTestCase
{ {
public function testSelect() public function testSelect()

4
tests/unit/framework/db/SchemaTest.php

@ -5,6 +5,10 @@ namespace yiiunit\framework\db;
use yii\caching\FileCache; use yii\caching\FileCache;
use yii\db\Schema; use yii\db\Schema;
/**
* @group db
* @group mysql
*/
class SchemaTest extends DatabaseTestCase class SchemaTest extends DatabaseTestCase
{ {

4
tests/unit/framework/db/cubrid/CubridActiveRecordTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use yiiunit\framework\db\ActiveRecordTest; use yiiunit\framework\db\ActiveRecordTest;
/**
* @group db
* @group cubrid
*/
class CubridActiveRecordTest extends ActiveRecordTest class CubridActiveRecordTest extends ActiveRecordTest
{ {
public $driverName = 'cubrid'; public $driverName = 'cubrid';

4
tests/unit/framework/db/cubrid/CubridCommandTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use yiiunit\framework\db\CommandTest; use yiiunit\framework\db\CommandTest;
/**
* @group db
* @group cubrid
*/
class CubridCommandTest extends CommandTest class CubridCommandTest extends CommandTest
{ {
public $driverName = 'cubrid'; public $driverName = 'cubrid';

4
tests/unit/framework/db/cubrid/CubridConnectionTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use yiiunit\framework\db\ConnectionTest; use yiiunit\framework\db\ConnectionTest;
/**
* @group db
* @group cubrid
*/
class CubridConnectionTest extends ConnectionTest class CubridConnectionTest extends ConnectionTest
{ {
public $driverName = 'cubrid'; public $driverName = 'cubrid';

4
tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php

@ -6,6 +6,10 @@ use yii\base\NotSupportedException;
use yii\db\sqlite\Schema; use yii\db\sqlite\Schema;
use yiiunit\framework\db\QueryBuilderTest; use yiiunit\framework\db\QueryBuilderTest;
/**
* @group db
* @group cubrid
*/
class CubridQueryBuilderTest extends QueryBuilderTest class CubridQueryBuilderTest extends QueryBuilderTest
{ {
public $driverName = 'cubrid'; public $driverName = 'cubrid';

4
tests/unit/framework/db/cubrid/CubridQueryTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use yiiunit\framework\db\QueryTest; use yiiunit\framework\db\QueryTest;
/**
* @group db
* @group cubrid
*/
class CubridQueryTest extends QueryTest class CubridQueryTest extends QueryTest
{ {
public $driverName = 'cubrid'; public $driverName = 'cubrid';

4
tests/unit/framework/db/cubrid/CubridSchemaTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use yiiunit\framework\db\SchemaTest; use yiiunit\framework\db\SchemaTest;
/**
* @group db
* @group cubrid
*/
class CubridSchemaTest extends SchemaTest class CubridSchemaTest extends SchemaTest
{ {
public $driverName = 'cubrid'; public $driverName = 'cubrid';

4
tests/unit/framework/db/mssql/MssqlActiveRecordTest.php

@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use yiiunit\framework\db\ActiveRecordTest; use yiiunit\framework\db\ActiveRecordTest;
/**
* @group db
* @group mssql
*/
class MssqlActiveRecordTest extends ActiveRecordTest class MssqlActiveRecordTest extends ActiveRecordTest
{ {
protected $driverName = 'sqlsrv'; protected $driverName = 'sqlsrv';

4
tests/unit/framework/db/mssql/MssqlCommandTest.php

@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use yiiunit\framework\db\CommandTest; use yiiunit\framework\db\CommandTest;
/**
* @group db
* @group mssql
*/
class MssqlCommandTest extends CommandTest class MssqlCommandTest extends CommandTest
{ {
protected $driverName = 'sqlsrv'; protected $driverName = 'sqlsrv';

4
tests/unit/framework/db/mssql/MssqlConnectionTest.php

@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use yiiunit\framework\db\ConnectionTest; use yiiunit\framework\db\ConnectionTest;
/**
* @group db
* @group mssql
*/
class MssqlConnectionTest extends ConnectionTest class MssqlConnectionTest extends ConnectionTest
{ {
protected $driverName = 'sqlsrv'; protected $driverName = 'sqlsrv';

4
tests/unit/framework/db/mssql/MssqlQueryTest.php

@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
use yiiunit\framework\db\QueryTest; use yiiunit\framework\db\QueryTest;
/**
* @group db
* @group mssql
*/
class MssqlQueryTest extends QueryTest class MssqlQueryTest extends QueryTest
{ {
protected $driverName = 'sqlsrv'; protected $driverName = 'sqlsrv';

4
tests/unit/framework/db/pgsql/PostgreSQLActiveRecordTest.php

@ -4,6 +4,10 @@ namespace yiiunit\framework\db\pgsql;
use yiiunit\framework\db\ActiveRecordTest; use yiiunit\framework\db\ActiveRecordTest;
/**
* @group db
* @group pgsql
*/
class PostgreSQLActiveRecordTest extends ActiveRecordTest class PostgreSQLActiveRecordTest extends ActiveRecordTest
{ {
protected $driverName = 'pgsql'; protected $driverName = 'pgsql';

4
tests/unit/framework/db/pgsql/PostgreSQLConnectionTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\pgsql;
use yiiunit\framework\db\ConnectionTest; use yiiunit\framework\db\ConnectionTest;
/**
* @group db
* @group pgsql
*/
class PostgreSQLConnectionTest extends ConnectionTest class PostgreSQLConnectionTest extends ConnectionTest
{ {
protected $driverName = 'pgsql'; protected $driverName = 'pgsql';

4
tests/unit/framework/db/pgsql/PostgreSQLQueryBuilderTest.php

@ -5,6 +5,10 @@ namespace yiiunit\framework\db\pgsql;
use yii\db\pgsql\Schema; use yii\db\pgsql\Schema;
use yiiunit\framework\db\QueryBuilderTest; use yiiunit\framework\db\QueryBuilderTest;
/**
* @group db
* @group pgsql
*/
class PostgreSQLQueryBuilderTest extends QueryBuilderTest class PostgreSQLQueryBuilderTest extends QueryBuilderTest
{ {
public $driverName = 'pgsql'; public $driverName = 'pgsql';

4
tests/unit/framework/db/sqlite/SqliteActiveRecordTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use yiiunit\framework\db\ActiveRecordTest; use yiiunit\framework\db\ActiveRecordTest;
/**
* @group db
* @group sqlite
*/
class SqliteActiveRecordTest extends ActiveRecordTest class SqliteActiveRecordTest extends ActiveRecordTest
{ {
protected $driverName = 'sqlite'; protected $driverName = 'sqlite';

4
tests/unit/framework/db/sqlite/SqliteCommandTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use yiiunit\framework\db\CommandTest; use yiiunit\framework\db\CommandTest;
/**
* @group db
* @group sqlite
*/
class SqliteCommandTest extends CommandTest class SqliteCommandTest extends CommandTest
{ {
protected $driverName = 'sqlite'; protected $driverName = 'sqlite';

4
tests/unit/framework/db/sqlite/SqliteConnectionTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use yiiunit\framework\db\ConnectionTest; use yiiunit\framework\db\ConnectionTest;
/**
* @group db
* @group sqlite
*/
class SqliteConnectionTest extends ConnectionTest class SqliteConnectionTest extends ConnectionTest
{ {
protected $driverName = 'sqlite'; protected $driverName = 'sqlite';

4
tests/unit/framework/db/sqlite/SqliteQueryBuilderTest.php

@ -5,6 +5,10 @@ namespace yiiunit\framework\db\sqlite;
use yii\db\sqlite\Schema; use yii\db\sqlite\Schema;
use yiiunit\framework\db\QueryBuilderTest; use yiiunit\framework\db\QueryBuilderTest;
/**
* @group db
* @group sqlite
*/
class SqliteQueryBuilderTest extends QueryBuilderTest class SqliteQueryBuilderTest extends QueryBuilderTest
{ {
protected $driverName = 'sqlite'; protected $driverName = 'sqlite';

4
tests/unit/framework/db/sqlite/SqliteQueryTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use yiiunit\framework\db\QueryTest; use yiiunit\framework\db\QueryTest;
/**
* @group db
* @group sqlite
*/
class SqliteQueryTest extends QueryTest class SqliteQueryTest extends QueryTest
{ {
protected $driverName = 'sqlite'; protected $driverName = 'sqlite';

4
tests/unit/framework/db/sqlite/SqliteSchemaTest.php

@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
use yiiunit\framework\db\SchemaTest; use yiiunit\framework\db\SchemaTest;
/**
* @group db
* @group sqlite
*/
class SqliteSchemaTest extends SchemaTest class SqliteSchemaTest extends SchemaTest
{ {
protected $driverName = 'sqlite'; protected $driverName = 'sqlite';

3
tests/unit/framework/helpers/ArrayHelperTest.php

@ -35,6 +35,9 @@ class Post3 extends Object
} }
} }
/**
* @group helpers
*/
class ArrayHelperTest extends TestCase class ArrayHelperTest extends TestCase
{ {
public function testToArray() public function testToArray()

4
tests/unit/framework/helpers/ConsoleTest.php

@ -6,6 +6,10 @@ use Yii;
use yii\helpers\Console; use yii\helpers\Console;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group helpers
* @group console
*/
class ConsoleTest extends TestCase class ConsoleTest extends TestCase
{ {
public function testStripAnsiFormat() public function testStripAnsiFormat()

1
tests/unit/framework/helpers/FileHelperTest.php

@ -6,6 +6,7 @@ use yii\test\TestCase;
/** /**
* Unit test for [[yii\helpers\FileHelper]] * Unit test for [[yii\helpers\FileHelper]]
* @see FileHelper * @see FileHelper
* @group helpers
*/ */
class FileHelperTest extends TestCase class FileHelperTest extends TestCase
{ {

3
tests/unit/framework/helpers/HtmlTest.php

@ -6,6 +6,9 @@ use Yii;
use yii\helpers\Html; use yii\helpers\Html;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group helpers
*/
class HtmlTest extends TestCase class HtmlTest extends TestCase
{ {
protected function setUp() protected function setUp()

3
tests/unit/framework/helpers/InflectorTest.php

@ -6,6 +6,9 @@ use Yii;
use yii\helpers\Inflector; use yii\helpers\Inflector;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group helpers
*/
class InflectorTest extends TestCase class InflectorTest extends TestCase
{ {
public function testPluralize() public function testPluralize()

3
tests/unit/framework/helpers/JsonTest.php

@ -7,6 +7,9 @@ use yii\helpers\Json;
use yii\test\TestCase; use yii\test\TestCase;
use yii\web\JsExpression; use yii\web\JsExpression;
/**
* @group helpers
*/
class JsonTest extends TestCase class JsonTest extends TestCase
{ {
public function testEncode() public function testEncode()

1
tests/unit/framework/helpers/StringHelperTest.php

@ -6,6 +6,7 @@ use yii\test\TestCase;
/** /**
* StringHelperTest * StringHelperTest
* @group helpers
*/ */
class StringHelperTest extends TestCase class StringHelperTest extends TestCase
{ {

3
tests/unit/framework/helpers/VarDumperTest.php

@ -4,6 +4,9 @@ namespace yiiunit\framework\helpers;
use \yii\helpers\VarDumper; use \yii\helpers\VarDumper;
use yii\test\TestCase; use yii\test\TestCase;
/**
* @group helpers
*/
class VarDumperTest extends TestCase class VarDumperTest extends TestCase
{ {
public function testDumpObject() public function testDumpObject()

1
tests/unit/framework/i18n/FormatterTest.php

@ -13,6 +13,7 @@ use yiiunit\TestCase;
/** /**
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
* @group i18n
*/ */
class FormatterTest extends TestCase class FormatterTest extends TestCase
{ {

3
tests/unit/framework/i18n/GettextMessageSourceTest.php

@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use yii\i18n\GettextMessageSource; use yii\i18n\GettextMessageSource;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group i18n
*/
class GettextMessageSourceTest extends TestCase class GettextMessageSourceTest extends TestCase
{ {
public function testLoadMessages() public function testLoadMessages()

3
tests/unit/framework/i18n/GettextMoFileTest.php

@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use yii\i18n\GettextMoFile; use yii\i18n\GettextMoFile;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group i18n
*/
class GettextMoFileTest extends TestCase class GettextMoFileTest extends TestCase
{ {
public function testLoad() public function testLoad()

3
tests/unit/framework/i18n/GettextPoFileTest.php

@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use yii\i18n\GettextPoFile; use yii\i18n\GettextPoFile;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group i18n
*/
class GettextPoFileTest extends TestCase class GettextPoFileTest extends TestCase
{ {
public function testLoad() public function testLoad()

3
tests/unit/framework/rbac/PhpManagerTest.php

@ -5,6 +5,9 @@ namespace yiiunit\framework\rbac;
use Yii; use Yii;
use yii\rbac\PhpManager; use yii\rbac\PhpManager;
/**
* @group rbac
*/
class PhpManagerTest extends ManagerTestCase class PhpManagerTest extends ManagerTestCase
{ {
protected function setUp() protected function setUp()

1
tests/unit/framework/requirements/YiiRequirementCheckerTest.php

@ -7,6 +7,7 @@ use yiiunit\TestCase;
/** /**
* Test case for [[YiiRequirementChecker]]. * Test case for [[YiiRequirementChecker]].
* @see YiiRequirementChecker * @see YiiRequirementChecker
* @group requirements
*/ */
class YiiRequirementCheckerTest extends TestCase class YiiRequirementCheckerTest extends TestCase
{ {

1
tests/unit/framework/validators/EmailValidatorTest.php

@ -6,6 +6,7 @@ use yiiunit\TestCase;
/** /**
* EmailValidatorTest * EmailValidatorTest
* @group validators
*/ */
class EmailValidatorTest extends TestCase class EmailValidatorTest extends TestCase
{ {

3
tests/unit/framework/web/ResponseTest.php

@ -13,6 +13,9 @@ class MockResponse extends \yii\web\Response
} }
} }
/**
* @group web
*/
class ResponseTest extends \yiiunit\TestCase class ResponseTest extends \yiiunit\TestCase
{ {
/** /**

3
tests/unit/framework/web/UrlManagerTest.php

@ -5,6 +5,9 @@ use yii\web\Request;
use yii\web\UrlManager; use yii\web\UrlManager;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group web
*/
class UrlManagerTest extends TestCase class UrlManagerTest extends TestCase
{ {
protected function setUp() protected function setUp()

3
tests/unit/framework/web/UrlRuleTest.php

@ -7,6 +7,9 @@ use yii\web\UrlRule;
use yii\web\Request; use yii\web\Request;
use yiiunit\TestCase; use yiiunit\TestCase;
/**
* @group web
*/
class UrlRuleTest extends TestCase class UrlRuleTest extends TestCase
{ {
public function testCreateUrl() public function testCreateUrl()

2
tests/unit/framework/web/XmlResponseFormatterTest.php

@ -26,6 +26,8 @@ class Post extends Object
/** /**
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @group web
*/ */
class XmlResponseFormatterTest extends \yiiunit\TestCase class XmlResponseFormatterTest extends \yiiunit\TestCase
{ {

3
tests/unit/framework/widgets/SpacelessTest.php

@ -4,6 +4,9 @@ namespace yiiunit\framework\widgets;
use yii\widgets\Spaceless; use yii\widgets\Spaceless;
/**
* @group widgets
*/
class SpacelessTest extends \yiiunit\TestCase class SpacelessTest extends \yiiunit\TestCase
{ {
public function testWidget() public function testWidget()

Loading…
Cancel
Save