mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
15 lines
247 B
PHP
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 ()"
|