com php-src: Updating the `DateTime_verify` test to include the new method in the reflected method list: ext/date/tests/DateTime_verify.phpt
| From: | Stanislav Malyshev | Date: | Thu, 05 Mar 2015 14:50:32 +0000 |
| Subject: | com php-src: Updating the `DateTime_verify` test to include the new method in the reflected method list: ext/date/tests/DateTime_verify.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85794@lists.php.net to get a copy of this message | ||
Commit: 1de1b6f9279a3122f1bbfa8641bf0d0dc520fd74
Author: Trevor Suarez <rican7@gmail.com> Thu, 5 Mar 2015 03:44:58 -0500
Parents: d3863aeaf768611190594986fd32453fa083407a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1de1b6f9279a3122f1bbfa8641bf0d0dc520fd74
Log:
Updating the
DateTime_verify test to include the
new method in the reflected method list
Changed paths:
M ext/date/tests/DateTime_verify.phpt
Diff:
diff --git a/ext/date/tests/DateTime_verify.phpt b/ext/date/tests/DateTime_verify.phpt
index 3376896..6045274 100644
--- a/ext/date/tests/DateTime_verify.phpt
+++ b/ext/date/tests/DateTime_verify.phpt
@@ -27,7 +27,7 @@ object(ReflectionClass)#%d (1) {
string(8) "DateTime"
}
..and get names of all its methods
-array(18) {
+array(19) {
[0]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
@@ -52,104 +52,111 @@ array(18) {
[3]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(16) "createFromFormat"
+ string(19) "createFromImmutable"
["class"]=>
string(8) "DateTime"
}
[4]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(13) "getLastErrors"
+ string(16) "createFromFormat"
["class"]=>
string(8) "DateTime"
}
[5]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(6) "format"
+ string(13) "getLastErrors"
["class"]=>
string(8) "DateTime"
}
[6]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(6) "modify"
+ string(6) "format"
["class"]=>
string(8) "DateTime"
}
[7]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(3) "add"
+ string(6) "modify"
["class"]=>
string(8) "DateTime"
}
[8]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(3) "sub"
+ string(3) "add"
["class"]=>
string(8) "DateTime"
}
[9]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(11) "getTimezone"
+ string(3) "sub"
["class"]=>
string(8) "DateTime"
}
[10]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(11) "setTimezone"
+ string(11) "getTimezone"
["class"]=>
string(8) "DateTime"
}
[11]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(9) "getOffset"
+ string(11) "setTimezone"
["class"]=>
string(8) "DateTime"
}
[12]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(7) "setTime"
+ string(9) "getOffset"
["class"]=>
string(8) "DateTime"
}
[13]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(7) "setDate"
+ string(7) "setTime"
["class"]=>
string(8) "DateTime"
}
[14]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(10) "setISODate"
+ string(7) "setDate"
["class"]=>
string(8) "DateTime"
}
[15]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(12) "setTimestamp"
+ string(10) "setISODate"
["class"]=>
string(8) "DateTime"
}
[16]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
- string(12) "getTimestamp"
+ string(12) "setTimestamp"
["class"]=>
string(8) "DateTime"
}
[17]=>
object(ReflectionMethod)#%d (2) {
["name"]=>
+ string(12) "getTimestamp"
+ ["class"]=>
+ string(8) "DateTime"
+ }
+ [18]=>
+ object(ReflectionMethod)#%d (2) {
+ ["name"]=>
string(4) "diff"
["class"]=>
string(8) "DateTime"