From b24a63e70e85bb1f2e620d0d57056d7816853e2f Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 21 Nov 2013 08:54:05 -0600 Subject: [PATCH] test: Add stubs for DateTime classes --- setup/test/tests/stubs.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/setup/test/tests/stubs.php b/setup/test/tests/stubs.php index 73afec7cd..2161f5211 100644 --- a/setup/test/tests/stubs.php +++ b/setup/test/tests/stubs.php @@ -49,4 +49,36 @@ class Exception { function getTraceAsString() {} } +class DateTime { + function add() {} + static function createFromFormat () {} + static function getLastErrors() {} + function modify() {} + function setDate() {} + function setISODate() {} + function setTime() {} + function setTimestamp() {} + function setTimezone() {} + function sub() {} + function diff() {} + function format() {} + function getOffset() {} + function getTimestamp() {} + function getTimezone() {} +} + +class DateInterval { + static function createFromDateString() {} + function format() {} +} + +class DateTimeZone { + function getLocation() {} + function getName() {} + function getOffset() {} + function getTransitions() {} + static function listAbbreviations() {} + static function listIdentifiers() {} +} + ?> -- GitLab