Commit 949dda5f by Carsten Brandt

tagged tests with @group tags

parent 41bd9ab7
......@@ -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
......@@ -6,6 +6,7 @@ use yiiunit\TestCase;
/**
* YiiBaseTest
* @group base
*/
class YiiBaseTest extends TestCase
{
......
......@@ -46,6 +46,9 @@ class BarBehavior extends Behavior
}
}
/**
* @group base
*/
class BehaviorTest extends TestCase
{
protected function setUp()
......
......@@ -17,6 +17,9 @@ function globalEventHandler2($event)
$event->handled = true;
}
/**
* @group base
*/
class ComponentTest extends TestCase
{
/**
......
......@@ -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
{
......
......@@ -9,7 +9,7 @@ use yiiunit\data\base\Singer;
use yiiunit\data\base\InvalidRulesModel;
/**
* ModelTest
* @group base
*/
class ModelTest extends TestCase
{
......
......@@ -5,7 +5,7 @@ use yii\base\Object;
use yiiunit\TestCase;
/**
* ObjectTest
* @group base
*/
class ObjectTest extends TestCase
{
......
......@@ -11,6 +11,8 @@ use yii\behaviors\AutoTimestamp;
/**
* Unit test for [[\yii\behaviors\AutoTimestamp]].
* @see AutoTimestamp
*
* @group behaviors
*/
class AutoTimestampTest extends TestCase
{
......
......@@ -5,6 +5,8 @@ use yii\caching\ApcCache;
/**
* Class for testing APC cache backend
* @group apc
* @group caching
*/
class ApcCacheTest extends CacheTestCase
{
......
......@@ -6,6 +6,8 @@ use yii\caching\DbCache;
/**
* Class for testing file cache backend
* @group db
* @group caching
*/
class DbCacheTest extends CacheTestCase
{
......
......@@ -5,6 +5,7 @@ use yii\caching\FileCache;
/**
* Class for testing file cache backend
* @group caching
*/
class FileCacheTest extends CacheTestCase
{
......
......@@ -5,6 +5,8 @@ use yii\caching\MemCache;
/**
* Class for testing memcache cache backend
* @group memcache
* @group caching
*/
class MemCacheTest extends CacheTestCase
{
......
......@@ -5,6 +5,8 @@ use yii\caching\MemCache;
/**
* Class for testing memcached cache backend
* @group memcached
* @group caching
*/
class MemCachedTest extends CacheTestCase
{
......
......@@ -6,6 +6,8 @@ use yiiunit\TestCase;
/**
* Class for testing redis cache backend
* @group redis
* @group caching
*/
class RedisCacheTest extends CacheTestCase
{
......
......@@ -5,6 +5,8 @@ use yii\caching\WinCache;
/**
* Class for testing wincache backend
* @group wincache
* @group caching
*/
class WinCacheTest extends CacheTestCase
{
......
......@@ -5,6 +5,8 @@ use yii\caching\XCache;
/**
* Class for testing xcache backend
* @group xcache
* @group caching
*/
class XCacheTest extends CacheTestCase
{
......
......@@ -6,6 +6,8 @@ use yii\caching\ZendDataCache;
/**
* Class for testing Zend cache backend
* @group zenddata
* @group caching
*/
class ZendDataCacheTest extends CacheTestCase
{
......
......@@ -6,6 +6,8 @@ use yii\console\controllers\AssetController;
/**
* Unit test for [[\yii\console\controllers\AssetController]].
* @see AssetController
*
* @group console
*/
class AssetControllerTest extends TestCase
{
......
......@@ -6,6 +6,8 @@ use yii\console\controllers\MessageController;
/**
* Unit test for [[\yii\console\controllers\MessageController]].
* @see MessageController
*
* @group console
*/
class MessageControllerTest extends TestCase
{
......
......@@ -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
{
......
......@@ -14,6 +14,8 @@ use yii\data\Sort;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*
* @group data
*/
class SortTest extends TestCase
{
......
......@@ -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()
......
......@@ -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()
......
......@@ -4,6 +4,10 @@ namespace yiiunit\framework\db;
use yii\db\Connection;
/**
* @group db
* @group mysql
*/
class ConnectionTest extends DatabaseTestCase
{
public function testConstruct()
......
......@@ -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
{
/**
......
......@@ -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()
......
......@@ -5,6 +5,10 @@ namespace yiiunit\framework\db;
use yii\caching\FileCache;
use yii\db\Schema;
/**
* @group db
* @group mysql
*/
class SchemaTest extends DatabaseTestCase
{
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -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';
......
......@@ -35,6 +35,9 @@ class Post3 extends Object
}
}
/**
* @group helpers
*/
class ArrayHelperTest extends TestCase
{
public function testToArray()
......
......@@ -6,6 +6,10 @@ use Yii;
use yii\helpers\Console;
use yiiunit\TestCase;
/**
* @group helpers
* @group console
*/
class ConsoleTest extends TestCase
{
public function testStripAnsiFormat()
......
......@@ -6,6 +6,7 @@ use yii\test\TestCase;
/**
* Unit test for [[yii\helpers\FileHelper]]
* @see FileHelper
* @group helpers
*/
class FileHelperTest extends TestCase
{
......
......@@ -6,6 +6,9 @@ use Yii;
use yii\helpers\Html;
use yiiunit\TestCase;
/**
* @group helpers
*/
class HtmlTest extends TestCase
{
protected function setUp()
......
......@@ -6,6 +6,9 @@ use Yii;
use yii\helpers\Inflector;
use yiiunit\TestCase;
/**
* @group helpers
*/
class InflectorTest extends TestCase
{
public function testPluralize()
......
......@@ -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()
......
......@@ -6,6 +6,7 @@ use yii\test\TestCase;
/**
* StringHelperTest
* @group helpers
*/
class StringHelperTest extends TestCase
{
......
......@@ -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()
......
......@@ -13,6 +13,7 @@ use yiiunit\TestCase;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
* @group i18n
*/
class FormatterTest extends TestCase
{
......
......@@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use yii\i18n\GettextMessageSource;
use yiiunit\TestCase;
/**
* @group i18n
*/
class GettextMessageSourceTest extends TestCase
{
public function testLoadMessages()
......
......@@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use yii\i18n\GettextMoFile;
use yiiunit\TestCase;
/**
* @group i18n
*/
class GettextMoFileTest extends TestCase
{
public function testLoad()
......
......@@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use yii\i18n\GettextPoFile;
use yiiunit\TestCase;
/**
* @group i18n
*/
class GettextPoFileTest extends TestCase
{
public function testLoad()
......
......@@ -5,6 +5,9 @@ namespace yiiunit\framework\rbac;
use Yii;
use yii\rbac\PhpManager;
/**
* @group rbac
*/
class PhpManagerTest extends ManagerTestCase
{
protected function setUp()
......
......@@ -7,6 +7,7 @@ use yiiunit\TestCase;
/**
* Test case for [[YiiRequirementChecker]].
* @see YiiRequirementChecker
* @group requirements
*/
class YiiRequirementCheckerTest extends TestCase
{
......
......@@ -6,6 +6,7 @@ use yiiunit\TestCase;
/**
* EmailValidatorTest
* @group validators
*/
class EmailValidatorTest extends TestCase
{
......
......@@ -13,6 +13,9 @@ class MockResponse extends \yii\web\Response
}
}
/**
* @group web
*/
class ResponseTest extends \yiiunit\TestCase
{
/**
......
......@@ -5,6 +5,9 @@ use yii\web\Request;
use yii\web\UrlManager;
use yiiunit\TestCase;
/**
* @group web
*/
class UrlManagerTest extends TestCase
{
protected function setUp()
......
......@@ -7,6 +7,9 @@ use yii\web\UrlRule;
use yii\web\Request;
use yiiunit\TestCase;
/**
* @group web
*/
class UrlRuleTest extends TestCase
{
public function testCreateUrl()
......
......@@ -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
{
......
......@@ -4,6 +4,9 @@ namespace yiiunit\framework\widgets;
use yii\widgets\Spaceless;
/**
* @group widgets
*/
class SpacelessTest extends \yiiunit\TestCase
{
public function testWidget()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment