示例#1
0
 function testShouldDisableY2kModeForEndYear()
 {
     $range = new VF_Year_Range('24-56');
     $range->setY2KMode(false);
     $this->assertEquals(56, $range->end(), 'should disable Y2k Mode for end year');
 }
 function yearRange($value)
 {
     $range = new VF_Year_Range($value);
     if(isset($this->getConfig()->importer->Y2KMode) && false === $this->getConfig()->importer->Y2KMode)
     {
         $range->setY2KMode(false);
     }
     if($this->getConfig()->importer->Y2KThreshold)
     {
         $range->setThreshold($this->getConfig()->importer->Y2KThreshold);
     }
     return $range;
 }