/** * @dataProvider validDateFail */ public function testValidDateFail($format, $input) { $date = new Date($this->logger); $date->set($input)->withFormat($format); $this->assertFalse($date->isValid()); $this->assertNotEmpty($this->getLogContent()); }
public static function getDateTimeValidator(Logger $logger) { $validator = new Date($logger); $validator->withFormat("Y-m-d H:i:s"); return $validator; }
private static function getDatetimeValidator($logger) { $validator = new Date($logger); $validator->withFormat("Y-m-d H:i:s"); return $validator; }