/**
  * Adiciona as colunas para ler o arquivo.
  *
  * @param int                   $start
  * @param int                   $length
  * @param AbstractFilter|string $type
  * @param bool|array            $config array de config ou bool apenas obrigatorio
  *
  * @return Column
  */
 public function createColumn($start, $length, $type = null, $config = false)
 {
     if (is_string($type)) {
         $type = Types::getType($type, $config);
     }
     return new Column($start, $length, $type);
 }
 /**
  * teste de types customizados.
  */
 public function testAddType()
 {
     $type = 'custon';
     Types::addType($type, 'CustonFilter');
     $t = Types::getType($type);
     $this->assertInstanceOf('CustonFilter', $t);
     $r = Types::getType($type, true);
     $this->assertNotEquals($t, $r);
     $t2 = Types::getType($type);
     $this->assertEquals($t, $t2);
     $r2 = Types::getType($type, true);
     $this->assertEquals($r, $r2);
 }