public function testRegisterDefault()
{
Config::registerDefault('weight', new ConfigTestWeight());
Config::registerDefault('info', new ConfigTestInfo());
// weight
$weight1 = new Weight('1gram');
$weight2 = new Weight('1kg');
isBatch(array(array('1 gram', $weight1->dump(false)), array('1000 gram', $weight2->convert('gram')->dump(false))));
// info
$info1 = new Info(1);
$info2 = new Info('1024byte');
isBatch(array(array('1 byte', $info1->dump(false)), array('1 kb', $info2->convert('kb')->dump(false))));
}