static function float($length = null, $precision = null) { $vt = new vartype('float'); $vt->length($length); $vt->precision($precision); return $vt; }
function floattest() { $s = vartype::float()->nullable()->defaultvalue('foo'); $this->assertFalse($s->getRequired()); $this->assertEquals($s->getDefault(), 'foo'); }