From 3824157f91bb5e37aad066ea1779f832697b7665 Mon Sep 17 00:00:00 2001 From: Yoshio HANAWA Date: Sat, 11 Aug 2012 15:20:19 +0900 Subject: [PATCH] Implement timecop_idate, timecop_getdate, timecop_localtime --- php_timecop.h | 3 +++ tests/overload08.phpt | 19 +++++++++++++++++++ tests/overload09.phpt | 20 ++++++++++++++++++++ tests/overload10.phpt | 20 ++++++++++++++++++++ timecop.c | 35 +++++++++++++++++++++++++++++++++-- 5 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 tests/overload08.phpt create mode 100644 tests/overload09.phpt create mode 100644 tests/overload10.phpt diff --git a/php_timecop.h b/php_timecop.h index 7781e20..ebc8dc9 100644 --- a/php_timecop.h +++ b/php_timecop.h @@ -51,6 +51,9 @@ PHP_FUNCTION(timecop_return); PHP_FUNCTION(timecop_time); PHP_FUNCTION(timecop_date); PHP_FUNCTION(timecop_gmdate); +PHP_FUNCTION(timecop_idate); +PHP_FUNCTION(timecop_getdate); +PHP_FUNCTION(timecop_localtime); PHP_FUNCTION(timecop_strtotime); PHP_FUNCTION(timecop_strftime); PHP_FUNCTION(timecop_gmstrftime); diff --git a/tests/overload08.phpt b/tests/overload08.phpt new file mode 100644 index 0000000..de7ca6e --- /dev/null +++ b/tests/overload08.phpt @@ -0,0 +1,19 @@ +--TEST-- +Function overloading test for idate +--SKIPIF-- +