Пример #1
0
 public function inflate($value, $record)
 {
     if ($f = $this->get('inflator')) {
         return call_user_func($f, $value, $record);
     }
     // use global inflator
     return Inflator::inflate($value, $this->isa);
 }
Пример #2
0
 /**
  * @dataProvider dateStringProvider
  */
 public function testDateTime($datestr)
 {
     $this->assertInstanceOf('DateTime', Inflator::inflate($datestr, 'DateTime'));
 }