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); }
/** * @dataProvider dateStringProvider */ public function testDateTime($datestr) { $this->assertInstanceOf('DateTime', Inflator::inflate($datestr, 'DateTime')); }