]> granicus.if.org Git - php/commitdiff
Add test for date_time_immutable invalid arguments
authorMark Niebergall <mbniebergall@gmail.com>
Sat, 9 Feb 2019 16:05:22 +0000 (17:05 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Sat, 9 Feb 2019 16:05:22 +0000 (17:05 +0100)
ext/date/tests/date_time_immutable001.phpt [new file with mode: 0644]

diff --git a/ext/date/tests/date_time_immutable001.phpt b/ext/date/tests/date_time_immutable001.phpt
new file mode 100644 (file)
index 0000000..d6ac1d3
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+DateTimeImmutable - invalid arguments
+--CREDITS--
+Mark Niebergall mbniebergall@gmail.com UPHPU TestFest 2017
+--FILE--
+<?php
+var_dump(date_create_immutable('Invalid'));
+?>
+--EXPECTF--
+bool(false)