private function getBackupFileDate($file, $ext = 'php')
{
$matches = array();
if (preg_match('@^(.*)([0-9]{8}_[0-9]{6})\\.' . $ext . '$@', $file, $matches) === 1) {
return \DateTime::createFromFormat(self::BACKUP_DATE_FORMAT, $matches[2]);
} else {
return null;
}
// @codeCoverageIgnoreEnd
}