Skip to content

Commit

Permalink
tagged tests with @group tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Sep 14, 2013
1 parent 41bd9ab commit 949dda5
Show file tree
Hide file tree
Showing 66 changed files with 188 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions tests/unit/framework/YiiBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/**
* YiiBaseTest
* @group base
*/
class YiiBaseTest extends TestCase
{
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/framework/base/BehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public function hasMethod($name)
}
}

/**
* @group base
*/
class BehaviorTest extends TestCase
{
protected function setUp()
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/framework/base/ComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ function globalEventHandler2($event)
$event->handled = true;
}

/**
* @group base
*/
class ComponentTest extends TestCase
{
/**
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/framework/base/FormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
use yiiunit\TestCase;

/**
*
* @author Qiang Xue <[email protected]>
* @since 2.0
* @group base
*/
class FormatterTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/framework/base/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use yiiunit\data\base\InvalidRulesModel;

/**
* ModelTest
* @group base
*/
class ModelTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/framework/base/ObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use yiiunit\TestCase;

/**
* ObjectTest
* @group base
*/
class ObjectTest extends TestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/behaviors/AutoTimestampTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
/**
* Unit test for [[\yii\behaviors\AutoTimestamp]].
* @see AutoTimestamp
*
* @group behaviors
*/
class AutoTimestampTest extends TestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/ApcCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/**
* Class for testing APC cache backend
* @group apc
* @group caching
*/
class ApcCacheTest extends CacheTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/DbCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Class for testing file cache backend
* @group db
* @group caching
*/
class DbCacheTest extends CacheTestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/unit/framework/caching/FileCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/**
* Class for testing file cache backend
* @group caching
*/
class FileCacheTest extends CacheTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/MemCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/**
* Class for testing memcache cache backend
* @group memcache
* @group caching
*/
class MemCacheTest extends CacheTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/MemCachedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/**
* Class for testing memcached cache backend
* @group memcached
* @group caching
*/
class MemCachedTest extends CacheTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/RedisCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Class for testing redis cache backend
* @group redis
* @group caching
*/
class RedisCacheTest extends CacheTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/WinCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/**
* Class for testing wincache backend
* @group wincache
* @group caching
*/
class WinCacheTest extends CacheTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/XCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/**
* Class for testing xcache backend
* @group xcache
* @group caching
*/
class XCacheTest extends CacheTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/caching/ZendDataCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Class for testing Zend cache backend
* @group zenddata
* @group caching
*/
class ZendDataCacheTest extends CacheTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/**
* Unit test for [[\yii\console\controllers\AssetController]].
* @see AssetController
*
* @group console
*/
class AssetControllerTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/**
* Unit test for [[\yii\console\controllers\MessageController]].
* @see MessageController
*
* @group console
*/
class MessageControllerTest extends TestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/data/ActiveDataProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/**
* @author Qiang Xue <[email protected]>
* @since 2.0
*
* @group data
*/
class ActiveDataProviderTest extends DatabaseTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/framework/data/SortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
/**
* @author Qiang Xue <[email protected]>
* @since 2.0
*
* @group data
*/
class SortTest extends TestCase
{
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
use yiiunit\data\ar\Order;
use yiiunit\data\ar\Item;

/**
* @group db
* @group mysql
*/
class ActiveRecordTest extends DatabaseTestCase
{
protected function setUp()
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use yii\db\Query;
use yii\db\DataReader;

/**
* @group db
* @group mysql
*/
class CommandTest extends DatabaseTestCase
{
public function testConstruct()
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use yii\db\Connection;

/**
* @group db
* @group mysql
*/
class ConnectionTest extends DatabaseTestCase
{
public function testConstruct()
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
use yii\db\pgsql\QueryBuilder as PgsqlQueryBuilder;
use yii\db\cubrid\QueryBuilder as CubridQueryBuilder;

/**
* @group db
* @group mysql
*/
class QueryBuilderTest extends DatabaseTestCase
{
/**
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use yii\db\Query;
use yii\db\DataReader;

/**
* @group db
* @group mysql
*/
class QueryTest extends DatabaseTestCase
{
public function testSelect()
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/SchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
use yii\caching\FileCache;
use yii\db\Schema;

/**
* @group db
* @group mysql
*/
class SchemaTest extends DatabaseTestCase
{

Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/cubrid/CubridActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

use yiiunit\framework\db\ActiveRecordTest;

/**
* @group db
* @group cubrid
*/
class CubridActiveRecordTest extends ActiveRecordTest
{
public $driverName = 'cubrid';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/cubrid/CubridCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

use yiiunit\framework\db\CommandTest;

/**
* @group db
* @group cubrid
*/
class CubridCommandTest extends CommandTest
{
public $driverName = 'cubrid';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/cubrid/CubridConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

use yiiunit\framework\db\ConnectionTest;

/**
* @group db
* @group cubrid
*/
class CubridConnectionTest extends ConnectionTest
{
public $driverName = 'cubrid';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
use yii\db\sqlite\Schema;
use yiiunit\framework\db\QueryBuilderTest;

/**
* @group db
* @group cubrid
*/
class CubridQueryBuilderTest extends QueryBuilderTest
{
public $driverName = 'cubrid';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/cubrid/CubridQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

use yiiunit\framework\db\QueryTest;

/**
* @group db
* @group cubrid
*/
class CubridQueryTest extends QueryTest
{
public $driverName = 'cubrid';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/cubrid/CubridSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

use yiiunit\framework\db\SchemaTest;

/**
* @group db
* @group cubrid
*/
class CubridSchemaTest extends SchemaTest
{
public $driverName = 'cubrid';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use yiiunit\framework\db\ActiveRecordTest;

/**
* @group db
* @group mssql
*/
class MssqlActiveRecordTest extends ActiveRecordTest
{
protected $driverName = 'sqlsrv';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/mssql/MssqlCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use yiiunit\framework\db\CommandTest;

/**
* @group db
* @group mssql
*/
class MssqlCommandTest extends CommandTest
{
protected $driverName = 'sqlsrv';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/mssql/MssqlConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use yiiunit\framework\db\ConnectionTest;

/**
* @group db
* @group mssql
*/
class MssqlConnectionTest extends ConnectionTest
{
protected $driverName = 'sqlsrv';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/mssql/MssqlQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use yiiunit\framework\db\QueryTest;

/**
* @group db
* @group mssql
*/
class MssqlQueryTest extends QueryTest
{
protected $driverName = 'sqlsrv';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/pgsql/PostgreSQLActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use yiiunit\framework\db\ActiveRecordTest;

/**
* @group db
* @group pgsql
*/
class PostgreSQLActiveRecordTest extends ActiveRecordTest
{
protected $driverName = 'pgsql';
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/framework/db/pgsql/PostgreSQLConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

use yiiunit\framework\db\ConnectionTest;

/**
* @group db
* @group pgsql
*/
class PostgreSQLConnectionTest extends ConnectionTest
{
protected $driverName = 'pgsql';
Expand Down
Loading

0 comments on commit 949dda5

Please sign in to comment.