summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2008-07-16 07:36:04 +0000
committerDerick Rethans <derick@php.net>2008-07-16 07:36:04 +0000
commit8d14c2b1829350f1f9fd6f0bdc9609d4c5dc42d9 (patch)
tree40ef04f9c1f668805e9f536279eceef56a011282
parent88318e0294f0b0b95eacbd4e24fe6c718a72390f (diff)
downloadphp-git-8d14c2b1829350f1f9fd6f0bdc9609d4c5dc42d9.tar.gz
- MFH: Fixed tests.
-rw-r--r--ext/date/tests/bug41523-64bit.phpt6
-rw-r--r--ext/date/tests/bug41709.phpt3
-rw-r--r--ext/date/tests/date_parse_001.phpt20
3 files changed, 19 insertions, 10 deletions
diff --git a/ext/date/tests/bug41523-64bit.phpt b/ext/date/tests/bug41523-64bit.phpt
index 5514492e33..d6d1320034 100644
--- a/ext/date/tests/bug41523-64bit.phpt
+++ b/ext/date/tests/bug41523-64bit.phpt
@@ -29,9 +29,11 @@ array(12) {
["fraction"]=>
float(0)
["warning_count"]=>
- int(0)
+ int(1)
["warnings"]=>
- array(0) {
+ array(1) {
+ [20]=>
+ string(27) "The parsed date was invalid"
}
["error_count"]=>
int(0)
diff --git a/ext/date/tests/bug41709.phpt b/ext/date/tests/bug41709.phpt
index 69c7cb4f47..624da0cd37 100644
--- a/ext/date/tests/bug41709.phpt
+++ b/ext/date/tests/bug41709.phpt
@@ -18,9 +18,10 @@ Array
[minute] => 0
[second] => 0
[fraction] => 0
- [warning_count] => 0
+ [warning_count] => 1
[warnings] => Array
(
+ [22] => The parsed date was invalid
)
[error_count] => 1
diff --git a/ext/date/tests/date_parse_001.phpt b/ext/date/tests/date_parse_001.phpt
index 205380fc9a..369039004f 100644
--- a/ext/date/tests/date_parse_001.phpt
+++ b/ext/date/tests/date_parse_001.phpt
@@ -89,9 +89,11 @@ array(15) {
["fraction"]=>
bool(false)
["warning_count"]=>
- int(0)
+ int(1)
["warnings"]=>
- array(0) {
+ array(1) {
+ [12]=>
+ string(27) "The parsed date was invalid"
}
["error_count"]=>
int(1)
@@ -125,9 +127,11 @@ array(12) {
["fraction"]=>
bool(false)
["warning_count"]=>
- int(0)
+ int(1)
["warnings"]=>
- array(0) {
+ array(1) {
+ [11]=>
+ string(27) "The parsed date was invalid"
}
["error_count"]=>
int(0)
@@ -181,9 +185,11 @@ array(12) {
["fraction"]=>
bool(false)
["warning_count"]=>
- int(0)
+ int(1)
["warnings"]=>
- array(0) {
+ array(1) {
+ [8]=>
+ string(27) "The parsed date was invalid"
}
["error_count"]=>
int(0)
@@ -298,6 +304,6 @@ array(12) {
bool(false)
}
-Warning: date_parse() expects parameter 1 to be string, array given in %s on line %d
+Warning: date_parse() expects parameter 1 to be string, array given in /home/derick/dev/php/php-5.3dev/ext/date/tests/date_parse_001.php on line 11
bool(false)
Done