php-src/ext/date/tests/bug54283.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

15 lines
247 B
PHP

--TEST--
Bug #54283 (new DatePeriod(NULL) causes crash)
--FILE--
<?php
try {
var_dump(new DatePeriod(NULL));
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECT--
string(51) "DatePeriod::__construct(): Unknown or bad format ()"