xref: /PHP-7.1/ext/date/tests/bug54283.phpt (revision 5b85234b)
1--TEST--
2Bug #54283 (new DatePeriod(NULL) causes crash)
3--FILE--
4<?php
5
6try {
7	var_dump(new DatePeriod(NULL));
8} catch (Exception $e) {
9	var_dump($e->getMessage());
10}
11
12?>
13--EXPECTF--
14string(51) "DatePeriod::__construct(): Unknown or bad format ()"
15