public function testSetFromArrayAndGetFormattedBlankValueWithoutLength()
 {
     $format = $this->getMockForAbstractClass('PositionalFile\\Format\\AbstractFormat');
     $format->expects($this->any())->method('convert')->with($this->stringContains('0'))->will($this->returnValue('0'));
     /** @var AbstractType $type */
     $type = $this->getMockForAbstractClass('PositionalFile\\Type\\AbstractType');
     $type->setFormat($format);
     $this->object->setFromArray(array('type' => $type, 'value' => '0'));
     $this->object->setValue('0');
     $this->assertEquals('0', $this->object->getFormattedValue());
 }
 public function __construct(array $data = array())
 {
     $default = array('length' => 1, 'value' => ' ', 'name' => 'filler', 'description' => 'Fill with blank', 'type' => new StringType());
     $data = array_merge($default, $data);
     parent::__construct($data);
 }