/** * @dataProvider data_tostrftime */ public function test_tostrftime($input, $expect) { $this->assertEquals($expect, DateFormatConverter::toStrftime($input)); }
/** * DateTime constructor. * * @param array|null $config * @param string $label * @param bool $ismulti * @param int $tid */ public function __construct($config = null, $label = '', $ismulti = false, $tid = 0) { global $conf; $this->config['format'] = DateFormatConverter::toDate($conf['dformat']); parent::__construct($config, $label, $ismulti, $tid); }