com php-src: Fix tests I missed before: ext/date/tests/ExtendDateTime.phpt ext/reflection/tests/ReflectionMethod_getModifiers_basic. phpt
| From: | Nikita Popov | Date: | Mon, 20 Jul 2020 08:54:59 +0000 |
| Subject: | com php-src: Fix tests I missed before: ext/date/tests/ExtendDateTime.phpt ext/reflection/tests/ReflectionMethod_getModifiers_basic. phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112232@lists.php.net to get a copy of this message | ||
Commit: 015fc638fb2a1f3082f1ef15684120def377f64f
Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 20 Jul 2020 10:54:59 +0200
Parents: 312fe2bdce066576f692d73c5a986213319cb605
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=015fc638fb2a1f3082f1ef15684120def377f64f
Log:
Fix tests I missed before
Changed paths:
M ext/date/tests/ExtendDateTime.phpt
M ext/reflection/tests/ReflectionMethod_getModifiers_basic.phpt
Diff:
diff --git a/ext/date/tests/ExtendDateTime.phpt b/ext/date/tests/ExtendDateTime.phpt
index 212d44ab82..70ed2793e6 100644
--- a/ext/date/tests/ExtendDateTime.phpt
+++ b/ext/date/tests/ExtendDateTime.phpt
@@ -9,4 +9,4 @@ class MyDateTime extends DateTime {
}
?>
--EXPECTF--
-Fatal error: Declaration of MyDateTime::__set_state() must be compatible with
DateTime::__set_state(array $array) in %s on line %d
+Fatal error: Method MyDateTime::__set_state() must take exactly 1 argument in %s on line %d
diff --git a/ext/reflection/tests/ReflectionMethod_getModifiers_basic.phpt
b/ext/reflection/tests/ReflectionMethod_getModifiers_basic.phpt
index e5e967e28e..6e0a0645c5 100644
--- a/ext/reflection/tests/ReflectionMethod_getModifiers_basic.phpt
+++ b/ext/reflection/tests/ReflectionMethod_getModifiers_basic.phpt
@@ -52,7 +52,7 @@ class TestClass
public function __wakeup() {}
- public static function __set_state() {}
+ public static function __set_state($a) {}
public function __autoload() {}
}