1--TEST--
2Test DateInterval::createFromDateString() function : nonsense data
3--FILE--
4<?php
5try {
6	$i = DateInterval::createFromDateString("foobar");
7} catch (DateMalformedIntervalStringException $e) {
8	echo $e::class, ': ', $e->getMessage(), "\n";
9}
10?>
11--EXPECTF--
12DateMalformedIntervalStringException: Unknown or bad format (foobar) at position 0 (f): The timezone could not be found in the database
13