@ -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
@ -6,6 +6,7 @@ use yiiunit\TestCase;
/**
* YiiBaseTest
* @group base
*/
class YiiBaseTest extends TestCase
{
@ -46,6 +46,9 @@ class BarBehavior extends Behavior
}
class BehaviorTest extends TestCase
protected function setUp()
@ -17,6 +17,9 @@ function globalEventHandler2($event)
$event->handled = true;
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
class FormatterTest extends TestCase
@ -9,7 +9,7 @@ use yiiunit\data\base\Singer;
use yiiunit\data\base\InvalidRulesModel;
* ModelTest
class ModelTest extends TestCase
@ -5,7 +5,7 @@ use yii\base\Object;
* ObjectTest
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
class DbCacheTest extends CacheTestCase
@ -5,6 +5,7 @@ use yii\caching\FileCache;
class FileCacheTest extends CacheTestCase
@ -5,6 +5,8 @@ use yii\caching\MemCache;
* Class for testing memcache cache backend
* @group memcache
class MemCacheTest extends CacheTestCase
* Class for testing memcached cache backend
* @group memcached
class MemCachedTest extends CacheTestCase
@ -6,6 +6,8 @@ use yiiunit\TestCase;
* Class for testing redis cache backend
* @group redis
class RedisCacheTest extends CacheTestCase
@ -5,6 +5,8 @@ use yii\caching\WinCache;
* Class for testing wincache backend
* @group wincache
class WinCacheTest extends CacheTestCase
@ -5,6 +5,8 @@ use yii\caching\XCache;
* Class for testing xcache backend
* @group xcache
class XCacheTest extends CacheTestCase
@ -6,6 +6,8 @@ use yii\caching\ZendDataCache;
* Class for testing Zend cache backend
* @group zenddata
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
class MessageControllerTest extends TestCase
@ -16,6 +16,8 @@ use yiiunit\data\ar\Order;
* @group data
class ActiveDataProviderTest extends DatabaseTestCase
@ -14,6 +14,8 @@ use yii\data\Sort;
class SortTest extends TestCase
@ -9,6 +9,10 @@ use yiiunit\data\ar\OrderItem;
use yiiunit\data\ar\Order;
use yiiunit\data\ar\Item;
* @group mysql
class ActiveRecordTest extends DatabaseTestCase
@ -7,6 +7,10 @@ use yii\db\Command;
use yii\db\Query;
use yii\db\DataReader;
class CommandTest extends DatabaseTestCase
public function testConstruct()
@ -4,6 +4,10 @@ namespace yiiunit\framework\db;
use yii\db\Connection;
class ConnectionTest extends DatabaseTestCase
@ -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;
class QueryBuilderTest extends DatabaseTestCase
class QueryTest extends DatabaseTestCase
public function testSelect()
@ -5,6 +5,10 @@ namespace yiiunit\framework\db;
use yii\caching\FileCache;
use yii\db\Schema;
class SchemaTest extends DatabaseTestCase
@ -3,6 +3,10 @@ namespace yiiunit\framework\db\cubrid;
use yiiunit\framework\db\ActiveRecordTest;
* @group cubrid
class CubridActiveRecordTest extends ActiveRecordTest
public $driverName = 'cubrid';
use yiiunit\framework\db\CommandTest;
class CubridCommandTest extends CommandTest
use yiiunit\framework\db\ConnectionTest;
class CubridConnectionTest extends ConnectionTest
@ -6,6 +6,10 @@ use yii\base\NotSupportedException;
use yii\db\sqlite\Schema;
use yiiunit\framework\db\QueryBuilderTest;
class CubridQueryBuilderTest extends QueryBuilderTest
use yiiunit\framework\db\QueryTest;
class CubridQueryTest extends QueryTest
use yiiunit\framework\db\SchemaTest;
class CubridSchemaTest extends SchemaTest
@ -4,6 +4,10 @@ namespace yiiunit\framework\db\mssql;
* @group mssql
class MssqlActiveRecordTest extends ActiveRecordTest
protected $driverName = 'sqlsrv';
class MssqlCommandTest extends CommandTest
class MssqlConnectionTest extends ConnectionTest
class MssqlQueryTest extends QueryTest
@ -4,6 +4,10 @@ namespace yiiunit\framework\db\pgsql;
* @group pgsql
class PostgreSQLActiveRecordTest extends ActiveRecordTest
protected $driverName = 'pgsql';
@ -3,6 +3,10 @@ namespace yiiunit\framework\db\pgsql;
class PostgreSQLConnectionTest extends ConnectionTest
@ -5,6 +5,10 @@ namespace yiiunit\framework\db\pgsql;
use yii\db\pgsql\Schema;
class PostgreSQLQueryBuilderTest extends QueryBuilderTest
public $driverName = 'pgsql';
@ -3,6 +3,10 @@ namespace yiiunit\framework\db\sqlite;
* @group sqlite
class SqliteActiveRecordTest extends ActiveRecordTest
protected $driverName = 'sqlite';
class SqliteCommandTest extends CommandTest
class SqliteConnectionTest extends ConnectionTest
@ -5,6 +5,10 @@ namespace yiiunit\framework\db\sqlite;
class SqliteQueryBuilderTest extends QueryBuilderTest
class SqliteQueryTest extends QueryTest
class SqliteSchemaTest extends SchemaTest
@ -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;
class ConsoleTest extends TestCase
public function testStripAnsiFormat()
@ -6,6 +6,7 @@ use yii\test\TestCase;
* Unit test for [[yii\helpers\FileHelper]]
* @see FileHelper
class FileHelperTest extends TestCase
@ -6,6 +6,9 @@ use Yii;
use yii\helpers\Html;
class HtmlTest extends TestCase
use yii\helpers\Inflector;
class InflectorTest extends TestCase
public function testPluralize()
@ -7,6 +7,9 @@ use yii\helpers\Json;
use yii\test\TestCase;
use yii\web\JsExpression;
class JsonTest extends TestCase
public function testEncode()
* StringHelperTest
class StringHelperTest extends TestCase
@ -4,6 +4,9 @@ namespace yiiunit\framework\helpers;
use \yii\helpers\VarDumper;
class VarDumperTest extends TestCase
public function testDumpObject()
@ -13,6 +13,7 @@ use yiiunit\TestCase;
* @group i18n
@ -5,6 +5,9 @@ namespace yiiunit\framework\i18n;
use yii\i18n\GettextMessageSource;
class GettextMessageSourceTest extends TestCase
public function testLoadMessages()
use yii\i18n\GettextMoFile;
class GettextMoFileTest extends TestCase
public function testLoad()
use yii\i18n\GettextPoFile;
class GettextPoFileTest extends TestCase
@ -5,6 +5,9 @@ namespace yiiunit\framework\rbac;
use Yii;
use yii\rbac\PhpManager;
* @group rbac
class PhpManagerTest extends ManagerTestCase
@ -7,6 +7,7 @@ use yiiunit\TestCase;
* Test case for [[YiiRequirementChecker]].
* @see YiiRequirementChecker
* @group requirements
class YiiRequirementCheckerTest extends 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;
class UrlManagerTest extends TestCase
@ -7,6 +7,9 @@ use yii\web\UrlRule;
use yii\web\Request;
class UrlRuleTest extends TestCase
public function testCreateUrl()
@ -26,6 +26,8 @@ class Post extends Object
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()