$fdt->setMaskFromDate($testArray);
$t->is($fdt->getMask(), 63, 'Setting of mask from date array worked !');
$testArray['second'] = '';
$t->is(FuzzyDateTime::getMaskFromDate($testArray), 62, 'The Mask returned by getMaskFromDate is correct !');
$testArray['minute'] = '';
$t->is(FuzzyDateTime::getMaskFromDate($testArray), 60, 'The Mask returned by getMaskFromDate is correct !');
$testArray['hour'] = '';
$t->is(FuzzyDateTime::getMaskFromDate($testArray), 56, 'The Mask returned by getMaskFromDate is correct !');
$testArray['day'] = '';
$t->is(FuzzyDateTime::getMaskFromDate($testArray), 48, 'The Mask returned by getMaskFromDate is correct !');
$testArray['month'] = '';
$t->is(FuzzyDateTime::getMaskFromDate($testArray), 32, 'The Mask returned by getMaskFromDate is correct !');
$testArray['year'] = '';
$t->is(FuzzyDateTime::getMaskFromDate($testArray), 0, 'The Mask returned by getMaskFromDate is correct !');
$fdt->setDateFormat('d/m/Y');
$fdt->setTimeFormat('H:i:s');
$fdt->setWithTime(true);
$fdt->setMask(0);
$t->is($fdt->getDateMasked(), '<em>24/02/1975 13:12:11</em>', 'The date displayed is well with 0 as mask second mask');
$fdt->setMask(1);
$t->is($fdt->getDateMasked(), '<em>24/02/1975 13:12</em>:11', 'The date displayed is well with second mask only');
$fdt->setMask(2);
$t->is($fdt->getDateMasked(), '<em>24/02/1975 13</em>:12:<em>11</em>', 'The date displayed is well with minute only');
$fdt->setMask(4);
$t->is($fdt->getDateMasked(), '<em>24/02/1975</em> 13:<em>12:11</em>', 'The date displayed is well with hours only');
$fdt->setMask(8);
$t->is($fdt->getDateMasked(), '24/<em>02/1975 13:12:11</em>', 'The date displayed is well with days only');
$fdt->setMask(16);
$t->is($fdt->getDateMasked(), '<em>24</em>/02/<em>1975 13:12:11</em>', 'The date displayed is well with month only');
$fdt->setMask(32);
$t->is($fdt->getDateMasked(), '<em>24/02</em>/1975 <em>13:12:11</em>', 'The date displayed is well with year only');