forked from hnw/php-timecop
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle PHP 5 mktime() $is_dst arg not being implemented
By handle I mean ignore.
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
Check reflection data for overridden functions (On PHP 5.6 timecop_mktime() does not implement the $is_dst parameter) | ||
--SKIPIF-- | ||
<?php | ||
$required_version = '7.0'; | ||
$required_func = array(); | ||
$required_class = array(); | ||
$required_method = array(); | ||
include(__DIR__."/tests-skipcheck.inc.php"); | ||
--INI-- | ||
date.timezone=America/Los_Angeles | ||
timecop.func_override=0 | ||
--FILE-- | ||
<?php | ||
|
||
$functions = [ | ||
'mktime' => 'timecop_mktime', | ||
'gmmktime' => 'timecop_gmmktime', | ||
]; | ||
|
||
require __DIR__.'/check-func-refl.inc.php'; | ||
|
||
--EXPECT-- | ||
Checking mktime vs timecop_mktime | ||
Checking gmmktime vs timecop_gmmktime |