summaryrefslogtreecommitdiff
path: root/ext/date/tests/checkdate_basic1.phpt
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-14 18:03:31 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-14 19:46:15 +0200
commitd7a3edd45db8d91ddf09cba7c594c63e63f62709 (patch)
treeef4fe3e4794260b362dad72d3542fdbef0169b8e /ext/date/tests/checkdate_basic1.phpt
parentb0708fa2e7b31f1fbd9539486a35d33643e62461 (diff)
downloadphp-git-d7a3edd45db8d91ddf09cba7c594c63e63f62709.tar.gz
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/date/tests/checkdate_basic1.phpt')
-rw-r--r--ext/date/tests/checkdate_basic1.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/date/tests/checkdate_basic1.phpt b/ext/date/tests/checkdate_basic1.phpt
index 2937f29a8e..9be78eb171 100644
--- a/ext/date/tests/checkdate_basic1.phpt
+++ b/ext/date/tests/checkdate_basic1.phpt
@@ -1,14 +1,14 @@
--TEST--
-Test date_create() function : basic functionality
+Test date_create() function : basic functionality
--FILE--
<?php
/* Prototype : bool checkdate ( int $month , int $day , int $year )
- * Description: Checks the validity of the date formed by the arguments.
- * A date is considered valid if each parameter is properly defined.
+ * Description: Checks the validity of the date formed by the arguments.
+ * A date is considered valid if each parameter is properly defined.
* Source code: ext/date/php_date.c
*/
-//Set the default time zone
+//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing checkdate() : basic functionality ***\n";
@@ -20,8 +20,8 @@ var_dump( checkdate(7, 2, 1963) );
var_dump( checkdate(5, 31, 2009) );
var_dump( checkdate(2, 28, 2009) ); // non-leap year
var_dump( checkdate(2, 29, 2008) ); // leap year
-var_dump( checkdate(7, 2, 1) ); // min year
-var_dump( checkdate(7, 2, 32767) ); // max year
+var_dump( checkdate(7, 2, 1) ); // min year
+var_dump( checkdate(7, 2, 32767) ); // max year
echo "-- The following are all invalid dates --\n";
var_dump( checkdate(13, 1, 2009) );
@@ -29,7 +29,7 @@ var_dump( checkdate(2, 31, 2009) );
var_dump( checkdate(1, 32, 2009) );
var_dump( checkdate(2, 29, 2009) ); // non-leap year
var_dump( checkdate(7, 2, 32768) ); // >max year
-var_dump( checkdate(7, 2, 0) ); // <min year
+var_dump( checkdate(7, 2, 0) ); // <min year
?>
===DONE===