mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-23 07:27:13 +01:00
26 lines
545 B
PHP
26 lines
545 B
PHP
<?php
|
|
/**
|
|
* @link http://www.yiiframework.com/
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
* @license http://www.yiiframework.com/license/
|
|
*/
|
|
|
|
namespace yiiunit\framework\db;
|
|
|
|
|
|
use yii\db\ColumnSchema;
|
|
use yii\db\Schema;
|
|
use yiiunit\TestCase;
|
|
|
|
/**
|
|
* ColumnSchemaTest tests ColumnSchema
|
|
*/
|
|
class ColumnSchemaTest extends TestCase
|
|
{
|
|
public function testDbTypecastWithEmptyCharType()
|
|
{
|
|
$columnSchema = new ColumnSchema(['type' => Schema::TYPE_CHAR]);
|
|
$this->assertSame('', $columnSchema->dbTypecast(''));
|
|
}
|
|
}
|