Example #1
0
 /**
  * Tests getting the base type as it is retuned by the Type class
  *
  * @return void
  */
 public function testBaseColumnTypeInherited()
 {
     Type::map('foo', __NAMESPACE__ . '\\FooType');
     $table = new Table('articles');
     $table->addColumn('thing', ['type' => 'foo', 'null' => false]);
     $this->assertEquals('foo', $table->columnType('thing'));
     $this->assertEquals('integer', $table->baseColumnType('thing'));
 }